Skip to content

Commit 3327dd4

Browse files
committed
scheme should contain one or more characters
1 parent a64914d commit 3327dd4

File tree

1 file changed

+1
-1
lines changed
  • actionpack/lib/action_dispatch/http

1 file changed

+1
-1
lines changed

actionpack/lib/action_dispatch/http/url.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module ActionDispatch
55
module Http
66
module URL
77
IP_HOST_REGEXP = /\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/
8-
HOST_REGEXP = /(^.*:\/\/)?([^:]+)(?::(\d+$))?/
8+
HOST_REGEXP = /(^[^:]+:\/\/)?([^:]+)(?::(\d+$))?/
99
PROTOCOL_REGEXP = /^([^:]+)(:)?(\/\/)?$/
1010

1111
mattr_accessor :tld_length

0 commit comments

Comments
 (0)