]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blobdiff - IkiWiki/Plugin/polygen.pm
web commit by ManojSrivastava
[git.ikiwiki.info.git] / IkiWiki / Plugin / polygen.pm
index 05ad4416ec58c7ad4962305a20dfef6374a47dfa..966b6cb51d5a9bda7015935ff63a52ff0aa83c20 100644 (file)
@@ -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;