X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Fexception%2FLocalizedException.php;h=d2cb5d17ec0292ce6d877f73dc240b95ee3ebe9a;hb=34dae4452f57219d555e2b6989357cd2cca54f72;hp=cbdb53ef4fe5e885cb7040cb1b75fb97dc7226e5;hpb=f9e21f91e459c40fed6d8f2e76cccbce07e2ba1b;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 ); }