diff options
author | mkanat%bugzilla.org <> | 2008-01-06 08:53:44 +0000 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2008-01-06 08:53:44 +0000 |
commit | 22d395ee10f81ecc43ca07e2d0654c158723d05b (patch) | |
tree | 37dae0e9fd2eeef9d0e9c0a00d659d6b00329bb8 /mod_perl.pl | |
parent | Bug 355847: Make the WebService able to add a comment to a bug (diff) | |
download | bugzilla-22d395ee10f81ecc43ca07e2d0654c158723d05b.tar.gz bugzilla-22d395ee10f81ecc43ca07e2d0654c158723d05b.tar.bz2 bugzilla-22d395ee10f81ecc43ca07e2d0654c158723d05b.zip |
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.pl | 5 |
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(@_); } |