aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers/url_helper.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2007-06-05 04:29:19 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2007-06-05 04:29:19 +0000
commit7709df5f17cc6ef33059aa3b4c9249c10d7d124c (patch)
tree5a2e64c1f897129a6c51ade3e2865a9e3c09d385 /actionpack/lib/action_view/helpers/url_helper.rb
parentf80468c3c319f56a24113381287445857f2ae807 (diff)
downloadrails-7709df5f17cc6ef33059aa3b4c9249c10d7d124c.tar.gz
rails-7709df5f17cc6ef33059aa3b4c9249c10d7d124c.tar.bz2
rails-7709df5f17cc6ef33059aa3b4c9249c10d7d124c.zip
Don't double-escape url_for in views. Closes #8144.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6942 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.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/url_helper.rb b/actionpack/lib/action_view/helpers/url_helper.rb
index d22a1464a0..1fa9939d0e 100644
--- a/actionpack/lib/action_view/helpers/url_helper.rb
+++ b/actionpack/lib/action_view/helpers/url_helper.rb
@@ -78,7 +78,7 @@ module ActionView
url = polymorphic_path(options)
end
- escape ? html_escape(url) : url
+ escape ? escape_once(url) : url
end
# Creates a link tag of the given +name+ using a URL created by the set