From: Paul Hänsch Date: Tue, 17 Jul 2018 01:24:10 +0000 (+0200) Subject: keep / in URL coded path X-Git-Url: http://git.plutz.net/?p=cgilite;a=commitdiff_plain;h=d490f720aed2ad75f580ac526f83c581d659633b keep / in URL coded path --- diff --git a/cgilite.sh b/cgilite.sh index 0c9582b..8859b44 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -170,7 +170,7 @@ URL(){ printf %s "$*" \ | hexdump -v -e '/1 ",%02X"' \ - | tr , % + | tr , % |sed 's;%2F;/;g;' } PATH(){ @@ -181,8 +181,7 @@ PATH(){ tX; s;/[^/]+/\.\./;/;; tX; - s;^(/.*)/$;\1; - s;/+;/;g;' + s;^(/.*)/$;\1;' }