FIX: deprecate whitelist constants (#10716)

Deprecation of:
WHITELISTED_REDIRECT_HOSTNAMES
CUSTOM_INTERPOLATION_KEYS_WHITELIST
WHITELISTED_SVG_ELEMENTS
This commit is contained in:
Krzysztof Kotlarek
2020-09-28 13:52:05 +10:00
committed by GitHub
parent bab56fdb9d
commit e7c72cd1e4
5 changed files with 16 additions and 9 deletions

View File

@ -3,7 +3,7 @@ import I18n from "I18n";
const DATA_PREFIX = "data-poll-";
const DEFAULT_POLL_NAME = "poll";
const WHITELISTED_ATTRIBUTES = [
const ALLOWED_ATTRIBUTES = [
"close",
"max",
"min",
@ -106,7 +106,7 @@ const rule = {
attributes.push([DATA_PREFIX + "status", "open"]);
}
WHITELISTED_ATTRIBUTES.forEach((name) => {
ALLOWED_ATTRIBUTES.forEach((name) => {
if (attrs[name]) {
attributes.push([DATA_PREFIX + name, attrs[name]]);
}