From d490f720aed2ad75f580ac526f83c581d659633b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 17 Jul 2018 03:24:10 +0200 Subject: [PATCH] keep / in URL coded path --- cgilite.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;' } -- 2.39.2