Make WordPress Core

Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#25302 closed defect (bug) (duplicate)

Incorrect handling of URLs with IPv6 address as the host part

Reported by: kralyk Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.6.1
Component: General Keywords:
Focuses: Cc:


When installing Wordpress (3.6.1) on a server accessed via an IPv6 address, Wordpress will not record the root URL properly. It will strip the '[]' brackets from the URL.

For example, this can be tested quickly on a localhost using http://[::1]/ - although Wordpress will install succesfully, all the links including CSS, scripts, etc. will not work because their URL will be http://::1/some/link instead of http://[::1]/some/link

Change History (2)

#1 @jeremyfelt
2 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate: #16859 Issue is that esc_url() strips [ and ].

#2 @kralyk
2 years ago

Oh, ok, sorry for dupe, I only searched for IPv6-related bugs.

Note: See TracTickets for help on using tickets.