mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 11:45:18 +08:00
Freeze WHITELISTED_ATTRIBUTES constatnt [SCI-102]
This commit is contained in:
parent
9987993ce0
commit
4fe3030ad4
1 changed files with 2 additions and 1 deletions
|
@ -216,7 +216,8 @@ class Constants
|
||||||
WHITELISTED_ATTRIBUTES = [
|
WHITELISTED_ATTRIBUTES = [
|
||||||
'href', 'src', 'width', 'height', 'alt', 'cite', 'datetime', 'title',
|
'href', 'src', 'width', 'height', 'alt', 'cite', 'datetime', 'title',
|
||||||
'class', 'name', 'xml:lang', 'abbr', 'style'
|
'class', 'name', 'xml:lang', 'abbr', 'style'
|
||||||
]
|
].freeze
|
||||||
|
|
||||||
# Very basic regex to check for validity of emails
|
# Very basic regex to check for validity of emails
|
||||||
BASIC_EMAIL_REGEX = URI::MailTo::EMAIL_REGEXP
|
BASIC_EMAIL_REGEX = URI::MailTo::EMAIL_REGEXP
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue