[wp-trac] [WordPress Trac] #34202: esc_url() cannot handle IPv6 literal URLs in PHP < 5.4.7

WordPress Trac noreply at wordpress.org
Fri Oct 16 20:17:27 UTC 2015


#34202: esc_url() cannot handle IPv6 literal URLs in PHP < 5.4.7
----------------------------------------+------------------------------
 Reporter:  johnbillion                 |       Owner:
     Type:  defect (bug)                |      Status:  new
 Priority:  low                         |   Milestone:  Awaiting Review
Component:  Formatting                  |     Version:  3.1
 Severity:  normal                      |  Resolution:
 Keywords:  needs-patch has-unit-tests  |     Focuses:
----------------------------------------+------------------------------

Comment (by swissspidy):

 `esc_url` also breaks when an IPv6 address is used in a query arg, e.g.
 `http://example.org/?s=2001:0db8:0000:0000:0000:ff00:0042:8329`. It just
 returns an empty string in that case.

 See #34054

--
Ticket URL: <https://core.trac.wordpress.org/ticket/34202#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list