diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-06 15:28:55 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-06 15:29:03 -0700 |
commit | 17fc6f16eb2be481a4d036bea58b3e4ae0052f3a (patch) | |
tree | 908c30fa4a847c76e21b844f9568ec18dbc9899b | |
parent | a8a6f85a1b58543b54a71728197a43a472d2eefc (diff) | |
download | rails-17fc6f16eb2be481a4d036bea58b3e4ae0052f3a.tar.gz rails-17fc6f16eb2be481a4d036bea58b3e4ae0052f3a.tar.bz2 rails-17fc6f16eb2be481a4d036bea58b3e4ae0052f3a.zip |
eliminate more wasteful allocations
-rw-r--r-- | actionview/lib/action_view/helpers/url_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/url_helper.rb b/actionview/lib/action_view/helpers/url_helper.rb index 894616a449..9a9777317a 100644 --- a/actionview/lib/action_view/helpers/url_helper.rb +++ b/actionview/lib/action_view/helpers/url_helper.rb @@ -462,7 +462,7 @@ module ActionView # <strong>Email me:</strong> <span>me@domain.com</span> # </a> def mail_to(email_address, name = nil, html_options = {}, &block) - email_address = ERB::Util.html_escape(email_address) + email_address = ERB::Util.unwrapped_html_escape(email_address) html_options, name = name, nil if block_given? html_options = (html_options || {}).stringify_keys @@ -471,7 +471,7 @@ module ActionView option = html_options.delete(item) || next "#{item}=#{Rack::Utils.escape_path(option)}" }.compact - extras = extras.empty? ? '' : '?' + ERB::Util.html_escape(extras.join('&')) + extras = extras.empty? ? '' : '?' + ERB::Util.unwrapped_html_escape(extras.join('&')) html_options["href"] = "mailto:#{email_address}#{extras}".html_safe |