From a29b69edaeeb1bdf43b5cb9c9f22e75e76e41031 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 29 Mar 2013 09:44:03 +0000 Subject: [PATCH] using HTTP status 500 for exceptions, to ease detection of errors with externals tools --- phpgwapi/inc/common_functions.inc.php | 1 + 1 file changed, 1 insertion(+) diff --git a/phpgwapi/inc/common_functions.inc.php b/phpgwapi/inc/common_functions.inc.php index efc8926bc9..ea800d24e2 100755 --- a/phpgwapi/inc/common_functions.inc.php +++ b/phpgwapi/inc/common_functions.inc.php @@ -1580,6 +1580,7 @@ function egw_exception_handler(Exception $e) // regular GUI exception if (!isset($GLOBALS['egw_info']['flags']['no_exception_handler'])) { + header('HTTP/1.1 500 '.$headline); $message = '

'.html::htmlspecialchars($headline)."

\n". '
'.html::htmlspecialchars($e->getMessage())."\n\n";