shithub: werc

Download patch

ref: cbcfb4e6a3134d25f656e9566ced7581236626f9
parent: 93b289ba39b6fb10686977c82cfe3d3012db8901
author: Uriel <u@berlinblue.org>
date: Mon May 24 19:35:08 EDT 2010

Handle https urls consistently in redirects.

--- a/bin/werc.rc
+++ b/bin/werc.rc
@@ -96,7 +96,7 @@
         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!
 
--