X-Git-Url: http://git.plutz.net/?p=shcgi;a=blobdiff_plain;f=cgi.sh;h=a9c59d93f0ed19e3f4bd4de107f12918eaea9c00;hp=3ad0e8b3a9f7c5301122f577bf9e0fc413b55074;hb=2025d397530ad31a57c4c1df926891b028a712a7;hpb=9b62da2cc5552e018fe8c48360c770446a9a6b55 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;