mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: deprecate whitelist constants (#10716)
Deprecation of: WHITELISTED_REDIRECT_HOSTNAMES CUSTOM_INTERPOLATION_KEYS_WHITELIST WHITELISTED_SVG_ELEMENTS
This commit is contained in:
parent
bab56fdb9d
commit
e7c72cd1e4
5 changed files with 16 additions and 9 deletions
|
@ -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]]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue