Merge pull request #3858 from Overbryd/redirect_to_url_with_network_path_reference

redirect_to url with network path reference: Do not escape forward slashes within a curly regexp
This commit is contained in:
Xavier Noria
2011-12-05 02:55:08 -08:00

View File

@@ -81,7 +81,8 @@ module ActionController
# The scheme name consist of a letter followed by any combination of
# letters, digits, and the plus ("+"), period ("."), or hyphen ("-")
# characters; and is terminated by a colon (":").
when %r{^(\w[\w+.-]*:|\/\/).*}
# The protocol relative scheme starts with a double slash "//"
when %r{^(\w[\w+.-]*:|//).*}
options
when String
request.protocol + request.host_with_port + options