From: lpsolit%gmail.com <> Date: Thu, 15 Jan 2009 00:50:30 +0000 (+0000) Subject: Bug 473553: ERROR_MODE_DIE should be the default if the script is not CGI - Patch... X-Git-Tag: bugzilla-3.3.2~50 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2bb9902fc23e6bee049119e661ad488b76eaa874;p=thirdparty%2Fbugzilla.git Bug 473553: ERROR_MODE_DIE should be the default if the script is not CGI - Patch by Frédéric Buclin r/a=mkanat --- diff --git a/Bugzilla.pm b/Bugzilla.pm index 12ae42bbae..324b3cc145 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -357,7 +357,7 @@ sub error_mode { $class->request_cache->{error_mode} = $newval; } return $class->request_cache->{error_mode} - || Bugzilla::Constants::ERROR_MODE_WEBPAGE; + || (i_am_cgi() ? ERROR_MODE_WEBPAGE : ERROR_MODE_DIE); } sub usage_mode {