aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb
diff options
context:
space:
mode:
authorTimm <kaspth@gmail.com>2013-08-09 23:38:14 +0200
committerTimm <kaspth@gmail.com>2014-06-16 21:04:03 +0200
commitac0d778fe973d8eb63fe8ef2af82a165d94b432a (patch)
treee0904d69a78cbfa9fd0020f4c21c8be003a352ee /actionview/lib/action_view/helpers/sanitize_helper/sanitizers.rb
parent1cdc511b90eee7351f21359c32c6d13385846dbd (diff)
downloadrails-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.rb3
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 = {})