diff options
author | mkanat%bugzilla.org <> | 2008-01-06 09:53:44 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-01-06 09:53:44 +0100 |
commit | 22d395ee10f81ecc43ca07e2d0654c158723d05b (patch) | |
tree | 37dae0e9fd2eeef9d0e9c0a00d659d6b00329bb8 /Bugzilla | |
parent | c2ebd1bb43d06223d26426a233c00a6ca22f45d6 (diff) | |
download | bugzilla-22d395ee10f81ecc43ca07e2d0654c158723d05b.tar.gz bugzilla-22d395ee10f81ecc43ca07e2d0654c158723d05b.tar.xz |
Bug 407420: CGI::Carp fatalsToBrowser should happen as early as possible
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=justdave, a=mkanat
Diffstat (limited to 'Bugzilla')
-rw-r--r-- | Bugzilla/CGI.pm | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Bugzilla/CGI.pm b/Bugzilla/CGI.pm index 3498b3c70..81141e1cb 100644 --- a/Bugzilla/CGI.pm +++ b/Bugzilla/CGI.pm @@ -62,13 +62,6 @@ sub new { my $self = $class->SUPER::new(@args); - if (Bugzilla->error_mode eq ERROR_MODE_WEBPAGE) { - # This happens here so that command-line scripts don't spit out - # their errors in HTML format. - require CGI::Carp; - import CGI::Carp qw(fatalsToBrowser); - } - # Make sure our outgoing cookie list is empty on each invocation $self->{Bugzilla_cookie_list} = []; |