Handle https urls consistently in redirects. - swerc - anselm's simpler werc fo… | |
git clone git://git.suckless.org/swerc | |
Log | |
Files | |
Refs | |
README | |
--- | |
commit c8f12d04b4a62717b06a51ac89ce84f7aaf4ab06 | |
parent 637173003fa90a0f94d228d29ef7eaf11b4c02ba | |
Author: Uriel <[email protected]> | |
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(-) | |
--- | |
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! | |