From fc206806d8b19d796b769a87419e9a21ef078bd4 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Wed, 16 Sep 2015 18:22:35 +0100 Subject: [PATCH] HttpError: Convert line breaks in text message to
Used by MediaWiki::tryNormaliseRedirect() for example with plain text containing line breaks. Change-Id: I5949046af4065c5536080212b96374466849b91a --- includes/exception/HttpError.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/exception/HttpError.php b/includes/exception/HttpError.php index b910ec629d..9211bf8267 100644 --- a/includes/exception/HttpError.php +++ b/includes/exception/HttpError.php @@ -121,7 +121,7 @@ class HttpError extends MWException { if ( $this->content instanceof Message ) { $contentHtml = $this->content->escaped(); } else { - $contentHtml = htmlspecialchars( $this->content ); + $contentHtml = nl2br( htmlspecialchars( $this->content ) ); } return "\n" . -- 2.20.1