diff options
author | Michael Koziarski <michael@koziarski.com> | 2009-10-15 09:58:35 +1300 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2009-10-15 09:58:35 +1300 |
commit | 1d01bad3cedfd690c6d125cac6d4504baa9409e5 (patch) | |
tree | 0a5850a54e6587a9e24fb9b45323191052aeee42 /actionpack/lib | |
parent | 5d5e34fa52183566968cb22f7c49544a7361a130 (diff) | |
download | rails-1d01bad3cedfd690c6d125cac6d4504baa9409e5.tar.gz rails-1d01bad3cedfd690c6d125cac6d4504baa9409e5.tar.bz2 rails-1d01bad3cedfd690c6d125cac6d4504baa9409e5.zip |
Make sure non-escaped urls aren't considered safe
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_view/helpers/url_helper.rb | 2 |
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 44e7073227..5b136d4f54 100644 --- a/actionpack/lib/action_view/helpers/url_helper.rb +++ b/actionpack/lib/action_view/helpers/url_helper.rb @@ -93,7 +93,7 @@ module ActionView polymorphic_path(options) end - (escape ? escape_once(url) : url).html_safe! + escape ? escape_once(url).html_safe! : url end # Creates a link tag of the given +name+ using a URL created by the set |