Freeze WHITELISTED_ATTRIBUTES constatnt [SCI-102]

This commit is contained in:
Oleksii Kriuchykhin 2017-01-05 16:13:00 +01:00
parent 9987993ce0
commit 4fe3030ad4

View file

@ -216,7 +216,8 @@ class Constants
WHITELISTED_ATTRIBUTES = [
'href', 'src', 'width', 'height', 'alt', 'cite', 'datetime', 'title',
'class', 'name', 'xml:lang', 'abbr', 'style'
]
].freeze
# Very basic regex to check for validity of emails
BASIC_EMAIL_REGEX = URI::MailTo::EMAIL_REGEXP