(bug 28834) Restore nl2br() wrappers removed in r85918.
authorHappy-melon <happy-melon@users.mediawiki.org>
Sat, 7 May 2011 13:24:47 +0000 (13:24 +0000)
committerHappy-melon <happy-melon@users.mediawiki.org>
Sat, 7 May 2011 13:24:47 +0000 (13:24 +0000)
includes/Exception.php

index 1db0b02..e801278 100644 (file)
@@ -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";
                }
        }
 }