From: joey Date: Sat, 11 Mar 2006 02:16:29 +0000 (+0000) Subject: foo X-Git-Tag: 1.0~535 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d7c2176a42fe00cdb56f17d29b360e0a61554c3a;p=ikiwiki.git foo --- 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; } }