From 9535ede862e01d834ebdd553184b1f6544b06d2c Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Fri, 16 Jan 2015 17:37:32 +0100 Subject: Don't leak error heading to HTML output Signed-off-by: Florian Pritz --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'index.php') diff --git a/index.php b/index.php index df12a670e..f41ee5fc5 100644 --- a/index.php +++ b/index.php @@ -270,8 +270,8 @@ function _actual_exception_handler($e) $message .="

More information can be found in syslog or by enabling display_errors.

"; } - $heading = sprintf("Exception '%s' with message '%s' in %s:%d", get_class($e), $e->getMessage(), $e->getFile(), $e->getLine()); - error_log($heading."\n".$backtrace); + $log_heading = sprintf("Exception '%s' with message '%s' in %s:%d", get_class($e), $e->getMessage(), $e->getFile(), $e->getLine()); + error_log($log_heading."\n".$backtrace); $message = "$message"; include APPPATH."/errors/error_general.php"; -- cgit v1.2.3-24-g4f1b