X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiErrorFormatter.php;h=7fb13525fa87ecbeba4dfddb6ff2912c892ef961;hb=9e8c3843746e1ecd68444fb99f59dd91d59e9349;hp=5484a78efe0359840c906b504fa27b2a3f46ee04;hpb=3bd5235bf69dea8cb304aaa68b60180829359321;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiErrorFormatter.php b/includes/api/ApiErrorFormatter.php index 5484a78efe..7fb13525fa 100644 --- a/includes/api/ApiErrorFormatter.php +++ b/includes/api/ApiErrorFormatter.php @@ -254,7 +254,7 @@ class ApiErrorFormatter { $ret = preg_replace( '!!', '"', $text ); // Strip tags and decode. - $ret = html_entity_decode( strip_tags( $ret ), ENT_QUOTES | ENT_HTML5 ); + $ret = Sanitizer::stripAllTags( $ret ); return $ret; }