summaryrefslogtreecommitdiff
path: root/ikiwiki
diff options
context:
space:
mode:
Diffstat (limited to 'ikiwiki')
-rwxr-xr-xikiwiki4
1 files changed, 2 insertions, 2 deletions
diff --git a/ikiwiki b/ikiwiki
index 9e22d1dbc..00e204b97 100755
--- 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;
}
}