[ruby-core:68204] [Backport200 - Backport #10873] backport r48666 lib/uri/generic.rb (URI::Generic.build)

From: usa@...
Date: 2015-02-21 00:40:27 UTC
List: ruby-core #68204
Issue #10873 has been updated by Usaku NAKAMURA.


r48666

----------------------------------------
Backport #10873: backport r48666 lib/uri/generic.rb (URI::Generic.build)
https://bugs.ruby-lang.org/issues/10873#change-51571

* Author: Joe Rafaniello
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
Fix URI::Generic.build to properly build IPv6 host values with square brackets.

use hostname= to detect and wrap IPv6 hosts.
Build is accepting URI components and users may not expect
that a host component needs to be wrapped with square brackets
since it's not providing a URI.

https://github.com/ruby/ruby/commit/4ec9793ba88b27028c826c6bc6c49ee59df8d920
https://github.com/ruby/ruby/pull/765



-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next