]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 987742 (part 2): correctly detaint $ENV{PATH} on Strawberry Perl
authorFrédéric Buclin <LpSolit@gmail.com>
Sat, 26 Mar 2016 23:30:17 +0000 (00:30 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Sat, 26 Mar 2016 23:30:17 +0000 (00:30 +0100)
Bugzilla.pm

index fba6d2a04f8157b4227a646d98c7f268b8326bae..64cf15bb689207bb385dcfd259e0d6916535a6f1 100644 (file)
@@ -99,6 +99,7 @@ sub init_page {
                 my $c_path = $path = dirname($^X);
                 $c_path =~ s/\bperl\b(?=\\bin)/c/;
                 $path .= ";$c_path";
+                trick_taint($path);
             }
         }
         # Some environment variables are not taint safe