Photos
Blog
Projects
vanrenterghem.biz
projects
/
git.ikiwiki.info.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
response
[git.ikiwiki.info.git]
/
doc
/
todo
/
index.html_allowed.mdwn
diff --git
a/doc/todo/index.html_allowed.mdwn
b/doc/todo/index.html_allowed.mdwn
index f030f9eea1ded22216fca48f3301d09dcb77dd16..f5e6f8cd7a4f8fa9f290f887d59fea625c3601f6 100644
(file)
--- a/
doc/todo/index.html_allowed.mdwn
+++ b/
doc/todo/index.html_allowed.mdwn
@@
-91,15
+91,15
@@
page "A/B/index.html" is treated as "A/B".
+++ ikidev/IkiWiki.pm 2007-02-25 15:05:22.328852000 -0800
@@ -192,6 +192,12 @@
return $untainted;
+++ ikidev/IkiWiki.pm 2007-02-25 15:05:22.328852000 -0800
@@ -192,6 +192,12 @@
return $untainted;
- }
#}}}
+ }
- +sub titlename($;@) {
#{{{
+ +sub titlename($;@) {
+ my $page = shift;
+ $page =~ s!/index$!!;
+ return pagetitle(basename($page), @_);
+ my $page = shift;
+ $page =~ s!/index$!!;
+ return pagetitle(basename($page), @_);
- +}
#}}}
+ +}
+
+
- sub basename ($) {
#{{{
+ sub basename ($) {
my $file=shift;
my $file=shift;
@@
-117,7
+117,7
@@
diff -ru ikiwiki-2.4/IkiWiki.pm ikiwiki/IkiWiki.pm
$page=~s/\Q.$type\E*$// if defined $type;
+ $page=~s/\/index$// if $page =~ /\/index$/;
return $page;
$page=~s/\Q.$type\E*$// if defined $type;
+ $page=~s/\/index$// if $page =~ /\/index$/;
return $page;
- }
#}}}
+ }
</pre>
</pre>