]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 473553: ERROR_MODE_DIE should be the default if the script is not CGI - Patch...
authorlpsolit%gmail.com <>
Thu, 15 Jan 2009 00:50:30 +0000 (00:50 +0000)
committerlpsolit%gmail.com <>
Thu, 15 Jan 2009 00:50:30 +0000 (00:50 +0000)
Bugzilla.pm

index 12ae42bbae0a5938380582f3b7f01ed9406ef742..324b3cc145b8a940799d5c1b373e7c8403f282a0 100644 (file)
@@ -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 {