From c2ae2b56413d877ca415aa88531795d061719eba Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 28 Nov 2014 18:03:09 +0100 Subject: Return status code 500 on Util::traceError() --- inc/util.inc.php | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'inc/util.inc.php') diff --git a/inc/util.inc.php b/inc/util.inc.php index 6e97e0bd..cce46536 100644 --- a/inc/util.inc.php +++ b/inc/util.inc.php @@ -11,12 +11,40 @@ class Util */ public static function traceError($message) { + Header('HTTP/1.1 500 Internal Server Error'); Header('Content-Type: text/plain; charset=utf-8'); echo "--------------------\nFlagrant system error:\n$message\n--------------------\n\n"; if (defined('CONFIG_DEBUG') && CONFIG_DEBUG) { debug_print_backtrace(); echo "\n\nSome variables for your entertainment:\n"; print_r($GLOBALS); + } else { + echo <<