X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fexception%2FLocalizedException.php;h=d2cb5d17ec0292ce6d877f73dc240b95ee3ebe9a;hb=e3a869de07016defcf87ed014b6a6ddf986c6732;hp=cbdb53ef4fe5e885cb7040cb1b75fb97dc7226e5;hpb=5b1dcdc344f5d251120a161637bcb89e01b0f6a4;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/exception/LocalizedException.php b/includes/exception/LocalizedException.php index cbdb53ef4f..d2cb5d17ec 100644 --- a/includes/exception/LocalizedException.php +++ b/includes/exception/LocalizedException.php @@ -56,7 +56,7 @@ class LocalizedException extends Exception implements ILocalizedException { // customizations, and make a basic attempt to turn markup into text. $msg = $this->getMessageObject()->inLanguage( 'en' )->useDatabase( false )->text(); $msg = preg_replace( '!!', '"', $msg ); - $msg = html_entity_decode( strip_tags( $msg ), ENT_QUOTES | ENT_HTML5 ); + $msg = Sanitizer::stripAllTags( $msg ); parent::__construct( $msg, $code, $previous ); }