foo
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 11 Mar 2006 02:16:29 +0000 (02:16 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Sat, 11 Mar 2006 02:16:29 +0000 (02:16 +0000)
ikiwiki

diff --git a/ikiwiki b/ikiwiki
index 9e22d1dbcc34bd8d6d78b3886a65ede79c691b52..00e204b97f698dd46d6efb18ed8fe28cc9667ee1 100755 (executable)
--- a/ikiwiki
+++ b/ikiwiki
@@ -605,11 +605,11 @@ sub cgi () {
                }
                else {
                        my $dir=$from."/";
-                       $dir=~s/[^/]+\/$//;
+                       $dir=~s![^/]+/$!!;
                        push @page_locs, $dir.$page;
                        push @page_locs, "$from/$page";
                        while (length $dir) {
-                               $dir=~s/[^/]+\/$//;
+                               $dir=~s![^/]+/$!!;
                                push @page_locs, $dir.$page;
                        }
                }