]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
fix taint issue
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 29 Aug 2006 22:09:16 +0000 (22:09 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 29 Aug 2006 22:09:16 +0000 (22:09 +0000)
IkiWiki/Plugin/polygen.pm

index 2ed81c8e46d13ec0d94f1d6d38b73dfdd8cb0573..82fd575a78e5b921e1c73977626ff11d44825b4f 100644 (file)
@@ -25,6 +25,7 @@ sub preprocess (@) { #{{{
        $grammar =~ s/\.grm$//;
        $grammar .= '.grm';
        $symbol =~ s/[^A-Za-z0-9]//g if defined $symbol;
+       $symbol = IkiWiki::possibly_foolish_untaint($symbol) if defined $symbol;
 
        my $grmfile = '/usr/share/polygen/ita/polygen.grm';
        if (! -d '/usr/share/polygen') {