diff options
| author | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-11 15:28:04 -0700 |
|---|---|---|
| committer | Aaron Patterson <aaron.patterson@gmail.com> | 2014-06-11 15:28:04 -0700 |
| commit | 3327dd462ffa28a197ece51443e603f24c14ddc6 (patch) | |
| tree | 2e4a34ee99dd509ede9525fc48d11ad1fe533a45 | |
| parent | a64914de4c41473c4bfecec1c69cfc931ccb6281 (diff) | |
| download | rails-3327dd462ffa28a197ece51443e603f24c14ddc6.tar.gz rails-3327dd462ffa28a197ece51443e603f24c14ddc6.tar.bz2 rails-3327dd462ffa28a197ece51443e603f24c14ddc6.zip | |
scheme should contain one or more characters
| -rw-r--r-- | actionpack/lib/action_dispatch/http/url.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/url.rb b/actionpack/lib/action_dispatch/http/url.rb index 9b5257ef96..b63c99d46f 100644 --- a/actionpack/lib/action_dispatch/http/url.rb +++ b/actionpack/lib/action_dispatch/http/url.rb @@ -5,7 +5,7 @@ module ActionDispatch module Http module URL IP_HOST_REGEXP = /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/ - HOST_REGEXP = /(^.*:\/\/)?([^:]+)(?::(\d+$))?/ + HOST_REGEXP = /(^[^:]+:\/\/)?([^:]+)(?::(\d+$))?/ PROTOCOL_REGEXP = /^([^:]+)(:)?(\/\/)?$/ mattr_accessor :tld_length |
