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

WordPress Trac noreply at wordpress.org
Thu Dec 4 19:24:17 UTC 2014


#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  |     Focuses:
------------------------------+---------------------

Comment (by miqrogroove):

 Replying to [comment:6 SergeyBiryukov]:
 > Replying to [comment:3 nacin]:
 > > Technically, a colon is a "reserved" character which means outside of
 its official use, it must be encoded.
 >
 > An encoded colon (`:` or `:`) doesn't work either.

 For future reference, the correct encoding is `%3a` or `%3A` which is not
 equivalent to the colon HTML character entity.

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


More information about the wp-trac mailing list