From 22d395ee10f81ecc43ca07e2d0654c158723d05b Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sun, 6 Jan 2008 08:53:44 +0000 Subject: Bug 407420: CGI::Carp fatalsToBrowser should happen as early as possible Patch By Max Kanat-Alexander r=justdave, a=mkanat --- Bugzilla/CGI.pm | 7 ------- 1 file changed, 7 deletions(-) (limited to 'Bugzilla') 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} = []; -- cgit v1.2.3-24-g4f1b