From 91712cc11ded5c5f042784e098a10e1dca82e0d5 Mon Sep 17 00:00:00 2001 From: Timm Date: Thu, 4 Jul 2013 16:55:42 +0200 Subject: bad_tags include form since we remove it. Also to prevent a should_allow_form_tag test creation. --- actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionview/lib/action_view/helpers') diff --git a/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb b/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb index 0bc4be6558..335280c718 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb @@ -99,7 +99,7 @@ module ActionView self.allowed_tags = Loofah::HTML5::WhiteList::ALLOWED_ELEMENTS - self.bad_tags = Set.new %w(script) + self.bad_tags = Set.new %w(script form) self.allowed_attributes = Loofah::HTML5::WhiteList::ALLOWED_ATTRIBUTES -- cgit v1.2.3