From 84f048c68a4c5336975bc72a3fbb8ecbc910e5f4 Mon Sep 17 00:00:00 2001 From: Happy-melon Date: Sat, 7 May 2011 13:24:47 +0000 Subject: [PATCH] (bug 28834) Restore nl2br() wrappers removed in r85918. --- includes/Exception.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Exception.php b/includes/Exception.php index 1db0b029b4..e8012782af 100644 --- a/includes/Exception.php +++ b/includes/Exception.php @@ -493,7 +493,7 @@ function wfReportException( Exception $e ) { if ( $cmdLine ) { wfPrintError( $message ); } else { - wfDie( htmlspecialchars( $message ) ) . "\n"; + wfDie( nl2br( htmlspecialchars( $message ) ) ) . "\n"; } } } else { @@ -507,7 +507,7 @@ function wfReportException( Exception $e ) { if ( $cmdLine ) { wfPrintError( $message ); } else { - wfDie( htmlspecialchars( $message ) ) . "\n"; + wfDie( nl2br( htmlspecialchars( $message ) ) ) . "\n"; } } } -- 2.20.1