aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorNicholas Seckar <nseckar@gmail.com>2006-03-19 17:03:02 +0000
committerNicholas Seckar <nseckar@gmail.com>2006-03-19 17:03:02 +0000
commitab9f32442318ab306df3c5282da56e50cf807d8a (patch)
tree378d180ab7df6f2793a1631d63b65f0bf02aa6b3 /actionpack/lib/action_view/helpers/url_helper.rb
parent83fa114e51bddabbbfc7e81edb5c3c6685c0fda4 (diff)
downloadrails-ab9f32442318ab306df3c5282da56e50cf807d8a.tar.gz
rails-ab9f32442318ab306df3c5282da56e50cf807d8a.tar.bz2
rails-ab9f32442318ab306df3c5282da56e50cf807d8a.zip
Undo accidental escaping for mail_to; add regression test. Fix incorrect credit in changelog. Closes #4202.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3976 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view/helpers/url_helper.rb')
-rw-r--r--actionpack/lib/action_view/helpers/url_helper.rb1
1 files changed, 0 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index c4c8fca98e..ae5f0c230d 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -196,7 +196,6 @@ module ActionView
# mail_to "me@domain.com", "My email", :cc => "ccaddress@domain.com", :bcc => "bccaddress@domain.com", :subject => "This is an example email", :body => "This is the body of the message." # =>
# <a href="mailto:me@domain.com?cc="ccaddress@domain.com"&bcc="bccaddress@domain.com"&body="This%20is%20the%20body%20of%20the%20message."&subject="This%20is%20an%20example%20email">My email</a>
def mail_to(email_address, name = nil, html_options = {})
- name = html_escape(name) if name
html_options = html_options.stringify_keys
encode = html_options.delete("encode")
cc, bcc, subject, body = html_options.delete("cc"), html_options.delete("bcc"), html_options.delete("subject"), html_options.delete("body")