aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-04-04 21:25:44 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-04-04 21:25:47 -0300
commite936cf9c47e716a32b75703cb1a8badf96be8a6b (patch)
tree0ea2471df0eeff401de009c63469ca0aa0134421 /actionpack/lib/action_view/helpers
parentaa3b6837b250db0a0df4c9779e0370e55ef3eb7f (diff)
downloadrails-e936cf9c47e716a32b75703cb1a8badf96be8a6b.tar.gz
rails-e936cf9c47e716a32b75703cb1a8badf96be8a6b.tar.bz2
rails-e936cf9c47e716a32b75703cb1a8badf96be8a6b.zip
Ensure mail_to helper does not modify the given html options hash
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index a1468b6e90..bfe11fc1d7 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -425,8 +425,8 @@ module ActionView
# * <tt>:bcc</tt> - Blind Carbon Copy additional recipients on the email.
#
# ==== Obfuscation
- # Prior to Rails 4.0, +mail_to+ provided options for encoding the address
- # in order to hinder email harvesters. To take advantage of these options,
+ # Prior to Rails 4.0, +mail_to+ provided options for encoding the address
+ # in order to hinder email harvesters. To take advantage of these options,
# install the +actionview-encoded_mail_to+ gem.
#
# ==== Examples
@@ -451,7 +451,7 @@ module ActionView
def mail_to(email_address, name = nil, html_options = {}, &block)
html_options, name = name, nil if block_given?
html_options ||= {}
- html_options.stringify_keys!
+ html_options = html_options.stringify_keys
email_address = ERB::Util.html_escape(email_address)