unescape tag names
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 5 Jan 2011 06:20:47 +0000 (07:20 +0100)
committerJoey Hess <joey@kitenet.net>
Wed, 5 Jan 2011 16:06:36 +0000 (12:06 -0400)
Since tag names are now retrieved from the file names, we must revert
the escaping process that santizes the file names. Solve by adding a
`pagetitle()` call at the end of the tagname()
(cherry picked from commit 0ee0612b1ab11d76eb3790c8db7a2ba992c54f6b)

IkiWiki/Plugin/tag.pm

index ff419dff220dc6afabce49939c494b09f6e23348..fd5ce1e8a91488ce5d5b20709001fd3d177def97 100644 (file)
@@ -63,7 +63,7 @@ sub tagname ($) {
        } else {
                $tag =~ s!^\.?/!!;
        }
-       return $tag;
+       return pagetitle($tag, 1);
 }
 
 sub htmllink_tag ($$$;@) {