summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--IkiWiki/Plugin/tag.pm2
1 files changed, 1 insertions, 1 deletions
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!^\.?/?!!;
}