diff options
author | Emilio Tagua <miloops@gmail.com> | 2010-09-29 12:55:43 -0300 |
---|---|---|
committer | Emilio Tagua <miloops@gmail.com> | 2010-09-29 12:55:43 -0300 |
commit | c37800aae123d21d53a49433cac2e0a2479c6bbd (patch) | |
tree | a4486c66fd23e88231ef51f9d5543e0be61df0b2 /actionpack/lib/action_dispatch/testing | |
parent | 8823b85010a217df555b981a453384e24ce7da47 (diff) | |
download | rails-c37800aae123d21d53a49433cac2e0a2479c6bbd.tar.gz rails-c37800aae123d21d53a49433cac2e0a2479c6bbd.tar.bz2 rails-c37800aae123d21d53a49433cac2e0a2479c6bbd.zip |
_ is not a valid scheme name character, \w includes it and also is redundant with \d.
'The scheme name consists of a letter followed by any combination of letters, digits, and the plus ("+"), period ("."), or hyphen ("-") characters; and is terminated by a colon (":").'
Diffstat (limited to 'actionpack/lib/action_dispatch/testing')
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/response.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/testing/assertions/response.rb b/actionpack/lib/action_dispatch/testing/assertions/response.rb index e381b9abdf..1558c3ae05 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/response.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/response.rb @@ -81,7 +81,7 @@ module ActionDispatch def normalize_argument_to_redirection(fragment) case fragment - when %r{^\w[\w\d+.-]*:.*} + when %r{^\w[A-Za-z\d+.-]*:.*} fragment when String @request.protocol + @request.host_with_port + fragment |