tag: Avoid autocreating multiple tag pages that vary only in capitalization. The first capitalization seen of a tag will be used for the tag page.

Arguably, the real bug is in the interface to add_autofile, but since
that does take a filename, not a page name, it cannot really do case
handling on its own. The only other users of add_autofile in ikiwiki proper
is autoindex, and it always uses one case. Other third party plugins might
also need to add similar workarounds though.
master
Joey Hess 2011-04-30 16:30:07 -04:00
parent 272961d7ff
commit bad5072c02
2 changed files with 6 additions and 0 deletions

View File

@ -104,6 +104,9 @@ sub gentag ($) {
else {
$tagpage=~s/^\///;
}
if (exists $IkiWiki::pagecase{lc $tagpage}) {
$tagpage=$IkiWiki::pagecase{lc $tagpage}
}
my $tagfile = newpagefile($tagpage, $config{default_pageext});

3
debian/changelog vendored
View File

@ -13,6 +13,9 @@ ikiwiki (3.20110329) UNRELEASED; urgency=low
* Be quiet about updating wrappers, except in verbose mode. (jmtd)
* meta: Add FOAF support. Closes: #623156 (Jonas Smedegaard)
* Promote Crypt::SSLeay to Recommends; needed for https openid auth.
* tag: Avoid autocreating multiple tag pages that vary only in
capitalization. The first capitalization seen of a tag will be used
for the tag page.
-- Joey Hess <joeyh@debian.org> Mon, 28 Mar 2011 13:08:23 -0400