]> git.plutz.net Git - cgilite/commitdiff
fixed accidentally broken urlsave
authorpaul <paul@plutz.net>
Fri, 31 Jul 2015 11:12:57 +0000 (11:12 +0000)
committerpaul <paul@plutz.net>
Fri, 31 Jul 2015 11:12:57 +0000 (11:12 +0000)
svn path=/trunk/; revision=9

cgi.sh

diff --git a/cgi.sh b/cgi.sh
index 3ad0e8b3a9f7c5301122f577bf9e0fc413b55074..a9c59d93f0ed19e3f4bd4de107f12918eaea9c00 100755 (executable)
--- 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;