From b1d4b7df6ead24f4c8e25797ae242287e73e9d59 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Paul=20H=C3=A4nsch?= Date: Tue, 17 Jul 2018 03:16:06 +0200 Subject: [PATCH] strip multi slash sequences in PATH function --- cgilite.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cgilite.sh b/cgilite.sh index 2930a4c..0c9582b 100755 --- a/cgilite.sh +++ b/cgilite.sh @@ -181,7 +181,8 @@ PATH(){ tX; s;/[^/]+/\.\./;/;; tX; - s;^(/.*)/$;\1;' + s;^(/.*)/$;\1; + s;/+;/;g;' } -- 2.39.2