diff options
author | jocuri%softhome.net <> | 2004-07-07 15:59:44 +0000 |
---|---|---|
committer | jocuri%softhome.net <> | 2004-07-07 15:59:44 +0000 |
commit | a33e1550f4d3827de1217cd8d299cfe804669741 (patch) | |
tree | b5fd41beba96391eea39768d54fbf02c67d730ad | |
parent | Bug 245077: The "Find a specific bug" tab is now the default query when you g... (diff) | |
download | bugzilla-a33e1550f4d3827de1217cd8d299cfe804669741.tar.gz bugzilla-a33e1550f4d3827de1217cd8d299cfe804669741.tar.bz2 bugzilla-a33e1550f4d3827de1217cd8d299cfe804669741.zip |
Fix for bug 248988: On Windows, attachments may fail due to "CGI open of tmpfile"; patch by byron jones (glob) <bugzilla@glob.com.au>; r=jouni; a=justdave.
-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; |