Permalink
Browse files

remove another wasteful AS::SafeBuffer allocation

  • Loading branch information...
1 parent e9f215d commit 092f74080c85ae343fcd97ad5f88fb019ab421c0 @tenderlove tenderlove committed Jun 6, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/redirection.rb
@@ -37,7 +37,7 @@ def serve(req)
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,

0 comments on commit 092f740

Please sign in to comment.