dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
HttpError: Convert line breaks in text message to <br>
[lhc/web/wiklou.git]
/
includes
/
exception
/
HttpError.php
diff --git
a/includes/exception/HttpError.php
b/includes/exception/HttpError.php
index
b910ec6
..
9211bf8
100644
(file)
--- 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 "<!DOCTYPE html>\n" .