From: Joey Hess Date: Tue, 4 Jan 2011 19:59:28 +0000 (-0400) Subject: fix patch to not strip a leading "." unless it's part of a path X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/1b1b3927eef687ed0fdc4cf12cfb8507645ed4a7?ds=sidebyside fix patch to not strip a leading "." unless it's part of a path For correctness only, since a tag named ".foo" is very unlikely. --- diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm index 707cc5da1..ff419dff2 100644 --- a/IkiWiki/Plugin/tag.pm +++ b/IkiWiki/Plugin/tag.pm @@ -61,7 +61,7 @@ sub tagname ($) { if (defined $config{tagbase}) { $tag =~ s!^/\Q$config{tagbase}\E/!!; } else { - $tag =~ s!^\.?/?!!; + $tag =~ s!^\.?/!!; } return $tag; }