Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

auto_link final sanitize

  • Loading branch information...
commit 3af33856d7d7a4eb718329e5aab16f1d17db8c88 1 parent e74e479
@homakov homakov authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/action_view/helpers/text_helper.rb
View
4 actionpack/lib/action_view/helpers/text_helper.rb
@@ -498,8 +498,8 @@ def auto_link_urls(text, html_options = {}, options = {})
link_text = block_given? ? yield(href) : href
href = 'http://' + href unless scheme
- sanitize = options[:sanitize] != false
- content_tag(:a, link_text, link_attributes.merge('href' => href), sanitize) + punctuation.reverse.join('')
+ sanitize_link = options[:sanitize] != false
+ sanitize(content_tag(:a, link_text, link_attributes.merge('href' => href), sanitize_link) + punctuation.reverse.join(''))
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.