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
Use Sanitizer::stripAllTags( $x ) instead of html_entity_decode( strip_tags( $x ) )
[lhc/web/wiklou.git]
/
includes
/
api
/
ApiErrorFormatter.php
diff --git
a/includes/api/ApiErrorFormatter.php
b/includes/api/ApiErrorFormatter.php
index
5484a78
..
7fb1352
100644
(file)
--- a/
includes/api/ApiErrorFormatter.php
+++ b/
includes/api/ApiErrorFormatter.php
@@
-254,7
+254,7
@@
class ApiErrorFormatter {
$ret = preg_replace( '!</?(var|kbd|samp|code)>!', '"', $text );
// Strip tags and decode.
- $ret =
html_entity_decode( strip_tags( $ret ), ENT_QUOTES | ENT_HTML5
);
+ $ret =
Sanitizer::stripAllTags( $ret
);
return $ret;
}