Project

General

Profile

This project is closed and read-only.

Actions

Backport #10875

closed

backport r48666 lib/uri/generic.rb (URI::Generic.build)

Backport #10875: backport r48666 lib/uri/generic.rb (URI::Generic.build)

Added by jrafanie (Joe Rafaniello) over 11 years ago. Updated over 11 years ago.

Status:
Closed
Assignee:
-
[ruby-core:68202]

Description

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


Related issues 1 (0 open1 closed)

Related to Backport200 - Backport #10873: backport r48666 lib/uri/generic.rb (URI::Generic.build)ClosedActions
Actions

Also available in: PDF Atom