Handle https urls consistently in redirects.

This commit is contained in:
Uriel 2010-05-24 23:35:08 +00:00
parent 8107467e4f
commit 7bd744527d

View File

@ -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!