]> git.plutz.net Git - cgilite/commitdiff
fixed escaping bug
authorpaul <paul@plutz.net>
Fri, 7 Aug 2015 16:59:08 +0000 (16:59 +0000)
committerpaul <paul@plutz.net>
Fri, 7 Aug 2015 16:59:08 +0000 (16:59 +0000)
svn path=/trunk/; revision=14

cgi.sh

diff --git a/cgi.sh b/cgi.sh
index fdc57b409fb8f6ed95dc6752a81eed4c7361bc6a..4f4cb509ed05458857209495f2d7d98e378dadbd 100755 (executable)
--- a/cgi.sh
+++ b/cgi.sh
@@ -80,11 +80,6 @@ urlsafe(){
          s;&;%26;g;
          s;";%22;g;
          s;'\'';%27;g;'
-# s; ;%20;g;
-# s;!;%21;g;
-# s;(;%28;g;
-# s;);%29;g;
-# s;:;%3a;g;
 }
 
 htmlsafe(){
@@ -93,7 +88,7 @@ htmlsafe(){
          s;>;\&gt\;;g;
          s;&;\&amp\;;g;
          s;";\&quot\;;g;
-         s;'\'';&apos\;;g;'
+         s;'\'';\&apos\;;g;'
 }
 
 redirect(){