aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-04-25 01:23:48 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2006-04-25 01:23:48 +0000
commit3b90dc8509d68c8751338a1513526e5b6d021bbf (patch)
tree30814b44f58a6d85473cb00c6fb685dcf315b004
parent1f06b397883128f33b96d6c9c454c2b778a36dd4 (diff)
downloadikiwiki-3b90dc8509d68c8751338a1513526e5b6d021bbf.tar
ikiwiki-3b90dc8509d68c8751338a1513526e5b6d021bbf.tar.gz
more double slash sanitisation, avoids another loop
-rwxr-xr-xikiwiki4
1 files changed, 2 insertions, 2 deletions
diff --git a/ikiwiki b/ikiwiki
index 3cf2a7cb3..2dbb42bc4 100755
--- a/ikiwiki
+++ b/ikiwiki
@@ -156,14 +156,14 @@ sub debug ($) { #{{{
sub basename ($) { #{{{
my $file=shift;
- $file=~s!.*/!!;
+ $file=~s!.*/+!!;
return $file;
} #}}}
sub dirname ($) { #{{{
my $file=shift;
- $file=~s!/?[^/]+$!!;
+ $file=~s!/*[^/]+$!!;
return $file;
} #}}}