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.

This commit is contained in:
jocuri%softhome.net 2004-07-07 08:59:44 +00:00
Родитель 79869c9ef7
Коммит e2b8c0e1da
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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;