aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorTimm <kaspth@gmail.com>2013-09-13 22:37:44 +0200
committerTimm <kaspth@gmail.com>2014-06-16 21:04:14 +0200
commitddc24fda90f8f4086e3af4ff2699409452a64640 (patch)
treeaa8729e87553613d4862589000284f983ce4efb3 /actionview
parent7f9106d5d996fec22fa8306168c21cc62b75ea9c (diff)
downloadrails-ddc24fda90f8f4086e3af4ff2699409452a64640.tar.gz
rails-ddc24fda90f8f4086e3af4ff2699409452a64640.tar.bz2
rails-ddc24fda90f8f4086e3af4ff2699409452a64640.zip
Changed PermitScrubber's direction to bottom up to align better with Loofah's strip scrubber.
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/sanitize_helper/scrubbers.rb1
1 files changed, 1 insertions, 0 deletions
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