]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
fix patch to not expose config setting as a regexp
authorJoey Hess <joey@kitenet.net>
Tue, 4 Jan 2011 19:59:00 +0000 (15:59 -0400)
committerJoey Hess <joey@kitenet.net>
Tue, 4 Jan 2011 19:59:00 +0000 (15:59 -0400)
IkiWiki/Plugin/tag.pm

index 9897efc08027c958afc89dbd9789c531b09b6ec1..707cc5da1b5dbd4941c8e78a0944485503f38779 100644 (file)
@@ -59,7 +59,7 @@ sub taglink ($) {
 sub tagname ($) {
        my $tag=shift;
        if (defined $config{tagbase}) {
-               $tag =~ s!^/$config{tagbase}/!!;
+               $tag =~ s!^/\Q$config{tagbase}\E/!!;
        } else {
                $tag =~ s!^\.?/?!!;
        }