diff options
author | Timm <kaspth@gmail.com> | 2013-09-13 22:37:44 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:04:14 +0200 |
commit | ddc24fda90f8f4086e3af4ff2699409452a64640 (patch) | |
tree | aa8729e87553613d4862589000284f983ce4efb3 /actionview | |
parent | 7f9106d5d996fec22fa8306168c21cc62b75ea9c (diff) | |
download | rails-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.rb | 1 |
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 |