From: joey Date: Tue, 29 Aug 2006 22:09:16 +0000 (+0000) Subject: fix taint issue X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/fe5c48f3a002df1867d045b3767900f83817038a fix taint issue --- diff --git a/IkiWiki/Plugin/polygen.pm b/IkiWiki/Plugin/polygen.pm index 2ed81c8e4..82fd575a7 100644 --- a/IkiWiki/Plugin/polygen.pm +++ b/IkiWiki/Plugin/polygen.pm @@ -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') {