From: Joey Hess Date: Tue, 4 Jan 2011 19:59:00 +0000 (-0400) Subject: fix patch to not expose config setting as a regexp X-Git-Tag: 3.20110105~29 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/fc6c0e8b5b0fb9de7bf798ce71a4ea3132285152?ds=sidebyside fix patch to not expose config setting as a regexp --- diff --git a/IkiWiki/Plugin/tag.pm b/IkiWiki/Plugin/tag.pm index 9897efc08..707cc5da1 100644 --- a/IkiWiki/Plugin/tag.pm +++ b/IkiWiki/Plugin/tag.pm @@ -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!^\.?/?!!; }