diff options
author | Florian Pritz <bluewind@xinu.at> | 2015-05-31 10:47:07 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2015-05-31 10:47:07 +0200 |
commit | 381c1def9cd224864a1c799eb6a9604b3fee1e13 (patch) | |
tree | 5aaeee55ce820982742b1d3d275e847f91373c7f | |
parent | d5e5051029885f2ccc2a81356d54d76d65ac2aec (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.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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>'; } |