[wp-trac] [WordPress Trac] #28015: esc_url_raw (esc_url) throw "Uninitialized string offset: 0" with invalid chars

WordPress Trac noreply at wordpress.org
Sat Sep 5 21:28:52 UTC 2015


#28015: esc_url_raw (esc_url) throw "Uninitialized string offset: 0" with invalid
chars
------------------------------+--------------------------
 Reporter:  mmems             |       Owner:  johnbillion
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.4
Component:  Formatting        |     Version:  3.3
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+--------------------------
Changes (by johnbillion):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"33923"]:
 {{{
 #!CommitTicketReference repository="" revision="33923"
 Bail out early from `esc_url()` if the URL becomes empty after stripping
 out disallowed characters.

 Fixes #28015
 Props jesin for the unit test
 }}}

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


More information about the wp-trac mailing list