diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-01-16 17:37:32 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-01-16 17:38:31 +0100 |
commit | 9535ede862e01d834ebdd553184b1f6544b06d2c (patch) | |
tree | 9f8968a6d74b02ea19473de2716131efb8ad2604 | |
parent | 1bf36e3c13a534a94b38e9bce50589ea59a7aee6 (diff) |
Don't leak error heading to HTML output
Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -270,8 +270,8 @@ function _actual_exception_handler($e) $message .="<p>More information can be found in syslog or by enabling display_errors.</p>"; } - $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"; |