summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-01-16 17:37:32 +0100
committerFlorian Pritz <bluewind@xinu.at>2015-01-16 17:38:31 +0100
commit9535ede862e01d834ebdd553184b1f6544b06d2c (patch)
tree9f8968a6d74b02ea19473de2716131efb8ad2604 /index.php
parent1bf36e3c13a534a94b38e9bce50589ea59a7aee6 (diff)
Don't leak error heading to HTML output
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
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 .="<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";