strip multi slash sequences in PATH function
authorPaul Hänsch <paul@plutz.net>
Tue, 17 Jul 2018 01:16:06 +0000 (03:16 +0200)
committerPaul Hänsch <paul@plutz.net>
Tue, 17 Jul 2018 01:16:06 +0000 (03:16 +0200)
cgilite.sh

index 2930a4c..0c9582b 100755 (executable)
@@ -181,7 +181,8 @@ PATH(){
             tX;
             s;/[^/]+/\.\./;/;;
             tX;
-            s;^(/.*)/$;\1;'
+            s;^(/.*)/$;\1;
+            s;/+;/;g;'
 }