allow ./-_ in urlsafe function
authorpaul <paul@plutz.net>
Mon, 28 Nov 2016 14:39:18 +0000 (14:39 +0000)
committerpaul <paul@plutz.net>
Mon, 28 Nov 2016 14:39:18 +0000 (14:39 +0000)
svn path=/trunk/; revision=46

cgi.sh

diff --git a/cgi.sh b/cgi.sh
index 30e6d76..32c73e6 100755 (executable)
--- a/cgi.sh
+++ b/cgi.sh
@@ -103,7 +103,7 @@ urlsafe(){
          s;%67;g;g; s;%68;h;g; s;%69;i;g; s;%6A;j;g; s;%6B;k;g; s;%6C;l;g;
          s;%6D;m;g; s;%6E;n;g; s;%6F;o;g; s;%70;p;g; s;%71;q;g; s;%72;r;g;
          s;%73;s;g; s;%74;t;g; s;%75;u;g; s;%76;v;g; s;%77;w;g; s;%78;x;g;
-         s;%79;y;g; s;%7A;z;g;'
+         s;%79;y;g; s;%7A;z;g; s;%2D;-;g; s;%2E;.;g; s;%2F;/;g; s;%5F;_;g'
 }
 
 attribsafe(){