fix patch to not expose config setting as a regexp
[ikiwiki.git] / 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!^\.?/?!!;
        }