diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-06 12:06:58 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-06 12:06:58 -0700 |
commit | 092f74080c85ae343fcd97ad5f88fb019ab421c0 (patch) | |
tree | e5398664418b91b7ece314e955f6348ca288f65c /actionpack/lib/action_dispatch/routing | |
parent | e9f215d9f2e3ac700d28730bcb7ad5c490515e61 (diff) | |
download | rails-092f74080c85ae343fcd97ad5f88fb019ab421c0.tar.gz rails-092f74080c85ae343fcd97ad5f88fb019ab421c0.tar.bz2 rails-092f74080c85ae343fcd97ad5f88fb019ab421c0.zip |
remove another wasteful AS::SafeBuffer allocation
Diffstat (limited to 'actionpack/lib/action_dispatch/routing')
-rw-r--r-- | actionpack/lib/action_dispatch/routing/redirection.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/routing/redirection.rb b/actionpack/lib/action_dispatch/routing/redirection.rb index b1b39a5496..3c1c4fadf6 100644 --- a/actionpack/lib/action_dispatch/routing/redirection.rb +++ b/actionpack/lib/action_dispatch/routing/redirection.rb @@ -37,7 +37,7 @@ module ActionDispatch uri.host ||= req.host uri.port ||= req.port unless req.standard_port? - body = %(<html><body>You are being <a href="#{ERB::Util.h(uri.to_s)}">redirected</a>.</body></html>) + body = %(<html><body>You are being <a href="#{ERB::Util.unwrapped_html_escape(uri.to_s)}">redirected</a>.</body></html>) headers = { 'Location' => uri.to_s, |