diff --git a/vendor/rails/actionpack/lib/action_controller/response.rb b/vendor/rails/actionpack/lib/action_controller/response.rb index 1d9f6676..56dace08 100755 --- a/vendor/rails/actionpack/lib/action_controller/response.rb +++ b/vendor/rails/actionpack/lib/action_controller/response.rb @@ -30,9 +30,9 @@ module ActionController def redirect(to_url, response_status) self.headers["Status"] = response_status - self.headers["Location"] = to_url + self.headers["Location"] = to_url.gsub(/[\r\n]/, '') - self.body = "You are being redirected." + self.body = "You are being redirected." end def prepare!