summaryrefslogtreecommitdiff
path: root/IkiWiki/Plugin/polygen.pm
diff options
context:
space:
mode:
Diffstat (limited to 'IkiWiki/Plugin/polygen.pm')
-rw-r--r--IkiWiki/Plugin/polygen.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/polygen.pm b/IkiWiki/Plugin/polygen.pm
index 05ad4416e..966b6cb51 100644
--- a/IkiWiki/Plugin/polygen.pm
+++ b/IkiWiki/Plugin/polygen.pm
@@ -21,6 +21,7 @@ sub preprocess (@) { #{{{
# Sanitize parameters
$grammar =~ IkiWiki::basename($grammar);
+ $grammar =~ s/[^A-Za-z0-9]//g;
$grammar =~ s/\.grm$//;
$grammar .= '.grm';
$symbol =~ s/[^A-Za-z0-9]//g if defined $symbol;