Deprecate Sanitizer::setupAttributeWhitelist/attributeWhitelist
authorC. Scott Ananian <cscott@cscott.net>
Tue, 23 Apr 2019 17:09:36 +0000 (13:09 -0400)
committerC. Scott Ananian <cscott@cscott.net>
Thu, 20 Jun 2019 18:42:20 +0000 (14:42 -0400)
commitbda42cef3c92e1117e63be8028ce824812c3e265
tree65c638421bf69c58a2c5e2e37a7349afeb1171a6
parenta31983f23c7104e8f5b2108e889ef8af1dca7251
Deprecate Sanitizer::setupAttributeWhitelist/attributeWhitelist

These methods should be made private in the next release, but
hard-deprecate them for 1.34.

Tweak the return value of the attribute whitelist to be an
associative rather than a sequential array, which makes the
lookup of allowed attributes more efficient and avoids an
array_flip for every html element sanitized.

Bug: T221677
Change-Id: I17d734937accec6c2679dbe17328cf9554bd556a
RELEASE-NOTES-1.34
includes/parser/Sanitizer.php
tests/phpunit/includes/parser/SanitizerTest.php