Handle https urls consistently in redirects. - swerc - anselm's simpler werc fork
HTML git clone git://git.suckless.org/swerc
DIR Log
DIR Files
DIR Refs
DIR README
---
DIR commit c8f12d04b4a62717b06a51ac89ce84f7aaf4ab06
DIR parent 637173003fa90a0f94d228d29ef7eaf11b4c02ba
HTML Author: Uriel <u@berlinblue.org>
Date: Mon, 24 May 2010 23:35:08 +0000
Handle https urls consistently in redirects.
Diffstat:
M bin/werc.rc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
DIR diff --git a/bin/werc.rc b/bin/werc.rc
@@ -96,7 +96,7 @@ fn werc_exec_request {
p=$$l
r=$p(1)
# If target is absolute, then patern must match whole string
- if(~ $p(2) http://* https://)
+ if(~ $p(2) http://* https://*)
r='^'$r
t=`{ echo $req_path | sed 's!'^$r^'!'^$p(2)^'!' } # Malicious danger!