diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-06 12:05:52 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-06 12:06:04 -0700 |
commit | e9f215d9f2e3ac700d28730bcb7ad5c490515e61 (patch) | |
tree | 4914c574097af851d2e7b7c4ddb9254a7bf972e9 /actionpack/lib/action_controller/metal | |
parent | a0aebc0dfbe9ba35fde0f64b8907664d8cef84a3 (diff) | |
download | rails-e9f215d9f2e3ac700d28730bcb7ad5c490515e61.tar.gz rails-e9f215d9f2e3ac700d28730bcb7ad5c490515e61.tar.bz2 rails-e9f215d9f2e3ac700d28730bcb7ad5c490515e61.zip |
eliminate wasteful AS::SafeBuffer allocation
Diffstat (limited to 'actionpack/lib/action_controller/metal')
-rw-r--r-- | actionpack/lib/action_controller/metal/redirecting.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_controller/metal/redirecting.rb b/actionpack/lib/action_controller/metal/redirecting.rb index 136e086d0d..3feb737277 100644 --- a/actionpack/lib/action_controller/metal/redirecting.rb +++ b/actionpack/lib/action_controller/metal/redirecting.rb @@ -72,7 +72,7 @@ module ActionController self.status = _extract_redirect_to_status(options, response_status) self.location = _compute_redirect_to_location(options) - self.response_body = "<html><body>You are being <a href=\"#{ERB::Util.h(location)}\">redirected</a>.</body></html>" + self.response_body = "<html><body>You are being <a href=\"#{ERB::Util.unwrapped_html_escape(location)}\">redirected</a>.</body></html>" end def _compute_redirect_to_location(options) #:nodoc: |