[wp-trac] [WordPress Trac] #21974: esc_url() doesn't allow protocol-relative URLs with colons

WordPress Trac noreply at wordpress.org
Wed Jul 10 13:45:22 UTC 2013


#21974: esc_url() doesn't allow protocol-relative URLs with colons
------------------------------+---------------------
 Reporter:  SergeyBiryukov    |       Owner:  nacin
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  3.6
Component:  Formatting        |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |
------------------------------+---------------------
Changes (by nacin):

 * owner:   => nacin
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"24642"]:
 {{{
 #!CommitTicketReference repository="" revision="24642"
 Skip protocol checking in esc_url() when we are dealing with a relative
 URL. Prevents munging of colons in paths and query strings, when present
 in a protocol-relative URL.

 props SergeyBiryukov.
 fixes #21974.
 }}}

--
Ticket URL: <http://core.trac.wordpress.org/ticket/21974#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list