X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fexception%2FHttpError.php;h=48bc3bd4e143385ca5a56705945d97622c38466a;hb=e3bd13db0c285f312e31bb1b7271af4628cca80c;hp=b910ec629dcbb4bcb7b596614e2222551e1e2797;hpb=f873b499650ef5d27570f9cb96d01d1477f9e089;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/exception/HttpError.php b/includes/exception/HttpError.php index b910ec629d..48bc3bd4e1 100644 --- a/includes/exception/HttpError.php +++ b/includes/exception/HttpError.php @@ -88,11 +88,11 @@ class HttpError extends MWException { $content = $content->text(); } - $context = array( + $context = [ 'file' => $this->getFile(), 'line' => $this->getLine(), 'http_code' => $this->httpCode, - ); + ]; $logMsg = "$content ({http_code}) from {file}:{line}"; @@ -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" .