]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Addl. fix for bug 1089448: also detaint $ENV{WINDIR} on Windows
authorFrédéric Buclin <LpSolit@gmail.com>
Thu, 7 Jan 2016 00:43:45 +0000 (01:43 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Thu, 7 Jan 2016 00:43:45 +0000 (01:43 +0100)
Bugzilla.pm

index 16075b2d128ca0b1ace498bef44c061143392df5..221a64f764e4c2af3161fcb1952fe61d8a056f70 100644 (file)
@@ -90,7 +90,7 @@ sub init_page {
             # On Windows, these paths are tainted, preventing
             # File::Spec::Win32->tmpdir from using them. But we need
             # a place to temporary store attachments which are uploaded.
-            foreach my $temp (qw(TMPDIR TMP TEMP)) {
+            foreach my $temp (qw(TMPDIR TMP TEMP WINDIR)) {
                 trick_taint($ENV{$temp}) if $ENV{$temp};
             }
             # Some DLLs used by Strawberry Perl are also in c\bin,