X-Git-Url: http://git.plutz.net/?p=cgilite;a=blobdiff_plain;f=cgilite.sh;h=9420b46c18ce96672ac10a9281ac9bd6806e9151;hp=0c9582b658dd379b69c8bfecb2cfd4c18c623fdc;hb=a301c53cc6f28dde4fa2f80d5785f7988542e327;hpb=b1d4b7df6ead24f4c8e25797ae242287e73e9d59 diff --git a/cgilite.sh b/cgilite.sh index 0c9582b..9420b46 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -170,7 +170,7 @@ URL(){ printf %s "$*" \ | hexdump -v -e '/1 ",%02X"' \ - | tr , % + | sed 's;,;%;g; s;%2F;/;g;' } PATH(){ @@ -181,8 +181,7 @@ PATH(){ tX; s;/[^/]+/\.\./;/;; tX; - s;^(/.*)/$;\1; - s;/+;/;g;' + s;^(/.*)/$;\1;' }