projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f06b39
)
more double slash sanitisation, avoids another loop
author
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 25 Apr 2006 01:23:48 +0000
(
01:23
+0000)
committer
joey
<joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 25 Apr 2006 01:23:48 +0000
(
01:23
+0000)
ikiwiki
patch
|
blob
|
history
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;
} #}}}