]> sipb.mit.edu Git - ikiwiki.git/commitdiff
tag: Avoid autocreating multiple tag pages that vary only in capitalization. The...
authorJoey Hess <joey@kitenet.net>
Sat, 30 Apr 2011 20:30:07 +0000 (16:30 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 30 Apr 2011 20:30:07 +0000 (16:30 -0400)
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.

IkiWiki/Plugin/tag.pm
debian/changelog

index 13dabce0c16cef34b85eab82fcc8c6c9aab2af54..ca74fef9021f660a3420903a1715bf4cf0867808 100644 (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});
 
index f37ebcf97eb5d972a97893435744ee94c6512122..07b1161fbcb45239d4558779024ddbe0cb554b8d 100644 (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