From b5ef7c2d9acb98a09e0848e59bcdbb5ca001bd8a Mon Sep 17 00:00:00 2001 From: mnlg_ Date: Fri, 15 Aug 2014 16:46:35 +0200 Subject: [PATCH] replace newline instead of '\n' --- Slim/Middleware/PrettyExceptions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Slim/Middleware/PrettyExceptions.php b/Slim/Middleware/PrettyExceptions.php index 8a56442b0..0ea3823cc 100644 --- a/Slim/Middleware/PrettyExceptions.php +++ b/Slim/Middleware/PrettyExceptions.php @@ -89,7 +89,7 @@ protected function renderBody(&$env, $exception) $message = $exception->getMessage(); $file = $exception->getFile(); $line = $exception->getLine(); - $trace = str_replace(array('#', '\n'), array('
#', '
'), $exception->getTraceAsString()); + $trace = str_replace(array('#', "\n"), array('
#', '
'), $exception->getTraceAsString()); $html = sprintf('

%s

', $title); $html .= '

The application could not run because of the following error:

'; $html .= '

Details

';