shithub: werc

Download patch

ref: 45a78e7bc3452aee2010fde364626a97797e6640
parent: dc93fa8e889d72ed71fc4436a9372e1e3d08bb96
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!