summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2015-05-31 10:47:07 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-31 10:47:07 +0200
commit381c1def9cd224864a1c799eb6a9604b3fee1e13 (patch)
tree5aaeee55ce820982742b1d3d275e847f91373c7f
parentd5e5051029885f2ccc2a81356d54d76d65ac2aec (diff)
Add linebreak to exception HTML
<pre> already breaks, but this ensures that in case the error is printed to cli there will also be a line break. Signed-off-by: Florian Pritz <bluewind@xinu.at>
-rw-r--r--index.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/index.php b/index.php
index e3e06323a..f9a9b66ce 100644
--- a/index.php
+++ b/index.php
@@ -303,7 +303,8 @@ function _actual_exception_handler($ex)
if (method_exists($e, "get_data") && $e->get_data() !== NULL) {
$message .= '<b>Data</b>: <pre>'.htmlspecialchars(var_export($e->get_data(), true)).'</pre><br>';
}
- $message .= '<b>Backtrace:</b> <pre>'.htmlspecialchars(str_replace(FCPATH, "./", $backtrace)).'</pre>';
+ $message .= '<b>Backtrace:</b><br>';
+ $message .= '<pre>'.htmlspecialchars(str_replace(FCPATH, "./", $backtrace)).'</pre>';
$message .= 'thrown in <b>'.htmlspecialchars($e->getFile()).'</b> on line <b>'.htmlspecialchars($e->getLine()).'</b><br>';
$message .= '</div>';
}