From ac0d778fe973d8eb63fe8ef2af82a165d94b432a Mon Sep 17 00:00:00 2001 From: Timm Date: Fri, 9 Aug 2013 23:38:14 +0200 Subject: Already killed off LinkScrubber. Changed it instead to be TargetScrubber, which is more general, while still allowing maximum code reuse. --- actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb') 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 = {}) -- cgit v1.2.3