more double slash sanitisation, avoids another loop
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 25 Apr 2006 01:23:48 +0000 (01:23 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 25 Apr 2006 01:23:48 +0000 (01:23 +0000)
ikiwiki

diff --git a/ikiwiki b/ikiwiki
index 3cf2a7cb3a0f49fc27c2197a34391602524d17d0..2dbb42bc483a042d3231685fc57c9ede74bea9d0 100755 (executable)
--- 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;
 } #}}}