From cbcfb4e6a3134d25f656e9566ced7581236626f9 Mon Sep 17 00:00:00 2001 From: Uriel Date: Mon, 24 May 2010 23:35:08 +0000 Subject: [PATCH] Handle https urls consistently in redirects. --- bin/werc.rc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/werc.rc b/bin/werc.rc index a9a7e3e..a7410fd 100755 --- 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!