From 8c7310e71398b3bf76c62ecd32db2340733a4769 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 19 May 2015 02:34:47 +0000 Subject: * lib/uri/rfc2396_parser.rb (initialize_pattern): URI::Generic.build should accept port as a string. pattern[:PORT] is not defined for long. by Dave Slutzkin https://github.com/ruby/ruby/pull/804 fix GH-804 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/uri/rfc2396_parser.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/uri') diff --git a/lib/uri/rfc2396_parser.rb b/lib/uri/rfc2396_parser.rb index c192f65ec1..a8af37502a 100644 --- a/lib/uri/rfc2396_parser.rb +++ b/lib/uri/rfc2396_parser.rb @@ -401,7 +401,7 @@ module URI # host = hostname | IPv4address | IPv6reference (RFC 2732) ret[:HOST] = host = "(?:#{hostname}|#{ipv4addr}|#{ipv6ref})" # port = *digit - port = '\d*' + ret[:PORT] = port = '\d*' # hostport = host [ ":" port ] ret[:HOSTPORT] = hostport = "#{host}(?::#{port})?" -- cgit v1.2.3