From 4fe3030ad49395ad1f6670e27c0cd88ceb122279 Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Thu, 5 Jan 2017 16:13:00 +0100 Subject: [PATCH] Freeze WHITELISTED_ATTRIBUTES constatnt [SCI-102] --- config/initializers/constants.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/initializers/constants.rb b/config/initializers/constants.rb index a3524fea3..db9006a9c 100644 --- a/config/initializers/constants.rb +++ b/config/initializers/constants.rb @@ -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