From: paul Date: Fri, 31 Jul 2015 11:12:57 +0000 (+0000) Subject: fixed accidentally broken urlsave X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=2025d397530ad31a57c4c1df926891b028a712a7;p=shcgi fixed accidentally broken urlsave svn path=/trunk/; revision=9 --- diff --git a/cgi.sh b/cgi.sh index 3ad0e8b..a9c59d9 100755 --- a/cgi.sh +++ b/cgi.sh @@ -73,10 +73,10 @@ cgi_cookie() { # Parse GET data from referer urlsave(){ printf %s "$*" \ - | sed 's; ;%20;g; + | sed 's;%;%25;g; + s; ;%20;g; s;!;%21;g; s;";%22;g; - s;%;%25;g; s;&;%26;g; s;(;%28;g; s;);%29;g;