Skip to content

Commit

Permalink
replace newline instead of '\n'
Browse files Browse the repository at this point in the history
  • Loading branch information
mnlg_ committed Aug 15, 2014
1 parent 4906b77 commit b5ef7c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Slim/Middleware/PrettyExceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ protected function renderBody(&$env, $exception)
$message = $exception->getMessage();
$file = $exception->getFile();
$line = $exception->getLine();
$trace = str_replace(array('#', '\n'), array('<div>#', '</div>'), $exception->getTraceAsString());
$trace = str_replace(array('#', "\n"), array('<div>#', '</div>'), $exception->getTraceAsString());
$html = sprintf('<h1>%s</h1>', $title);
$html .= '<p>The application could not run because of the following error:</p>';
$html .= '<h2>Details</h2>';
Expand Down

0 comments on commit b5ef7c2

Please sign in to comment.