diff options
author | mkanat%kerio.com <> | 2005-07-14 15:01:34 +0200 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-07-14 15:01:34 +0200 |
commit | bcfde177dbb9f3748f59af067357e5902335ca46 (patch) | |
tree | 9b889e93b023cc3a275867f1fd87571888353d25 /Bugzilla/CGI.pm | |
parent | bf0a551fc3ff716b540dc221ab58f80cc2b3d820 (diff) | |
download | bugzilla-bcfde177dbb9f3748f59af067357e5902335ca46.tar.gz bugzilla-bcfde177dbb9f3748f59af067357e5902335ca46.tar.xz |
Bug 283989: CGI.pl global init code should be moved to Bugzilla::CGI
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=wurblzap, a=justdave
Diffstat (limited to 'Bugzilla/CGI.pm')
-rw-r--r-- | Bugzilla/CGI.pm | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 6f5a6f6d7..c2d61780f 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -25,9 +25,18 @@ use strict; package Bugzilla::CGI; +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 CGI qw(-no_xhtml -oldstyle_urls :private_tempfiles :unique_headers SERVER_PUSH); use base qw(CGI); +use CGI::Carp qw(fatalsToBrowser); use Bugzilla::Error; use Bugzilla::Util; |