From 5d3a29229ba0a52c78d13aad99ac508f96778d77 Mon Sep 17 00:00:00 2001 From: Timm Date: Fri, 23 May 2014 23:20:21 +0200 Subject: Delegate allowed tags and attributes setting to HTML::WhiteListSanitizer. --- actionview/lib/action_view/helpers/sanitize_helper.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'actionview/lib/action_view') diff --git a/actionview/lib/action_view/helpers/sanitize_helper.rb b/actionview/lib/action_view/helpers/sanitize_helper.rb index 38354a1d0b..1acb8d5648 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper.rb @@ -138,11 +138,11 @@ module ActionView end def sanitized_allowed_tags - Rails::Html::WhiteListSanitizer.allowed_tags + HTML::WhiteListSanitizer.allowed_tags end def sanitized_allowed_attributes - Rails::Html::WhiteListSanitizer.allowed_attributes + HTML::WhiteListSanitizer.allowed_attributes end # Gets the Rails::Html::FullSanitizer instance used by +strip_tags+. Replace with @@ -185,7 +185,7 @@ module ActionView # end # def sanitized_allowed_tags=(*tags) - Rails::Html::WhiteListSanitizer.allowed_tags = tags + HTML::WhiteListSanitizer.allowed_tags = tags end # Replaces the allowed HTML attributes for the +sanitize+ helper. @@ -195,7 +195,7 @@ module ActionView # end # def sanitized_allowed_attributes=(*attributes) - Rails::Html::WhiteListSanitizer.allowed_attributes = attributes + HTML::WhiteListSanitizer.allowed_attributes = attributes end end end -- cgit v1.2.3