From 2bb9902fc23e6bee049119e661ad488b76eaa874 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 15 Jan 2009 00:50:30 +0000 Subject: Bug 473553: ERROR_MODE_DIE should be the default if the script is not CGI - Patch by Frédéric Buclin r/a=mkanat MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla.pm') diff --git a/Bugzilla.pm b/Bugzilla.pm index 12ae42bba..324b3cc14 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 { -- cgit v1.2.3-24-g4f1b