From ddc24fda90f8f4086e3af4ff2699409452a64640 Mon Sep 17 00:00:00 2001 From: Timm Date: Fri, 13 Sep 2013 22:37:44 +0200 Subject: Changed PermitScrubber's direction to bottom up to align better with Loofah's strip scrubber. --- actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb') diff --git a/actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb b/actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb index 9e573b14ca..43826f5e60 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb @@ -45,6 +45,7 @@ class PermitScrubber < Loofah::Scrubber attr_reader :tags, :attributes def initialize + @direction = :bottom_up @tags, @attributes = nil, nil end -- cgit v1.2.3