summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-11-10 19:48:58 -0500
committerJoey Hess <joey@kodama.kitenet.net>2008-11-10 19:48:58 -0500
commitf8a09ba105e0b58ec59fe4cd8d92a1577cce14d2 (patch)
tree5312ad0edc38036938624cb8a7587ffba8459a76 /IkiWiki/Plugin
parent81a87988c4aa0eb95f83dffe0af08de6cf103cb0 (diff)
tag: Normalize tagbase so leading/trailing slashes in it don't break things.
Diffstat (limited to 'IkiWiki/Plugin')
-rw-r--r--IkiWiki/Plugin/tag.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm
index c4a175677..7977bbcf5 100644
--- a/IkiWiki/Plugin/tag.pm
+++ b/IkiWiki/Plugin/tag.pm
@@ -44,6 +44,7 @@ sub tagpage ($) { #{{{
if ($tag !~ m{^\.?/} &&
defined $config{tagbase}) {
$tag="/".$config{tagbase}."/".$tag;
+ $tag=~y#/#/#s; # squash dups
}
return $tag;