From fe5c48f3a002df1867d045b3767900f83817038a Mon Sep 17 00:00:00 2001 From: joey Date: Tue, 29 Aug 2006 22:09:16 +0000 Subject: fix taint issue --- IkiWiki/Plugin/polygen.pm | 1 + 1 file changed, 1 insertion(+) 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') { -- cgit v1.2.3