summaryrefslogtreecommitdiffstats
path: root/mod_perl.pl
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2008-01-06 09:53:44 +0100
committermkanat%bugzilla.org <>2008-01-06 09:53:44 +0100
commit22d395ee10f81ecc43ca07e2d0654c158723d05b (patch)
tree37dae0e9fd2eeef9d0e9c0a00d659d6b00329bb8 /mod_perl.pl
parentc2ebd1bb43d06223d26426a233c00a6ca22f45d6 (diff)
downloadbugzilla-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 'mod_perl.pl')
-rw-r--r--mod_perl.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod_perl.pl b/mod_perl.pl
index b4a8f297e..fccc25fb2 100644
--- a/mod_perl.pl
+++ b/mod_perl.pl
@@ -92,6 +92,11 @@ sub handler : method {
# $0 is broken under mod_perl before 2.0.2, so we have to set it
# here explicitly or init_page's shutdownhtml code won't work right.
$0 = $ENV{'SCRIPT_FILENAME'};
+
+ # Make all errors go to the browser, not the log.
+ require CGI::Carp;
+ CGI::Carp->import('fatalsToBrowser');
+
Bugzilla::init_page();
return $class->SUPER::handler(@_);
}