diff options
-rw-r--r-- | CGI.pl | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -32,6 +32,14 @@ use lib "."; # use Carp; # for confess +BEGIN { + if ($^O =~ /MSWin32/i) { + # Help CGI find the correct temp directory as the default list + # isn't Windows friendly (Bug 248988) + $ENV{'TMPDIR'} = $ENV{'TEMP'} || $ENV{'TMP'} || "$ENV{'WINDIR'}\\TEMP"; + } +} + use Bugzilla::Util; use Bugzilla::Config; use Bugzilla::Constants; |