Handle https urls consistently in redirects.
This commit is contained in:
parent
93b289ba39
commit
cbcfb4e6a3
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ fn werc_exec_request {
|
||||||
p=$$l
|
p=$$l
|
||||||
r=$p(1)
|
r=$p(1)
|
||||||
# If target is absolute, then patern must match whole string
|
# If target is absolute, then patern must match whole string
|
||||||
if(~ $p(2) http://* https://)
|
if(~ $p(2) http://* https://*)
|
||||||
r='^'$r
|
r='^'$r
|
||||||
t=`{ echo $req_path | sed 's!'^$r^'!'^$p(2)^'!' } # Malicious danger!
|
t=`{ echo $req_path | sed 's!'^$r^'!'^$p(2)^'!' } # Malicious danger!
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue