зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
79869c9ef7
Коммит
e2b8c0e1da
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче