mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user