diff options
author | Timm <kaspth@gmail.com> | 2013-08-09 23:38:14 +0200 |
---|---|---|
committer | Timm <kaspth@gmail.com> | 2014-06-16 21:04:03 +0200 |
commit | ac0d778fe973d8eb63fe8ef2af82a165d94b432a (patch) | |
tree | e0904d69a78cbfa9fd0020f4c21c8be003a352ee /actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb | |
parent | 1cdc511b90eee7351f21359c32c6d13385846dbd (diff) | |
download | rails-ac0d778fe973d8eb63fe8ef2af82a165d94b432a.tar.gz rails-ac0d778fe973d8eb63fe8ef2af82a165d94b432a.tar.bz2 rails-ac0d778fe973d8eb63fe8ef2af82a165d94b432a.zip |
Already killed off LinkScrubber. Changed it instead to be TargetScrubber, which is more general, while still allowing maximum code reuse.
Diffstat (limited to 'actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb')
-rw-r--r-- | actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb b/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb index 905fa38446..c6bbf5e3f7 100644 --- a/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb +++ b/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb @@ -34,7 +34,8 @@ module ActionView class LinkSanitizer < Sanitizer def initialize - @link_scrubber = LinkScrubber.new + @link_scrubber = TargetScrubber.new + @link_scrubber.tags = %w(a href) end def sanitize(html, options = {}) |