[wp-trac] [WordPress Trac] #23187: esc_url() fails if the URL's scheme's case does not match the allowed protocol's case

WordPress Trac noreply at wordpress.org
Mon Jan 14 06:27:26 UTC 2013


#23187: esc_url() fails if the URL's scheme's case does not match the allowed
protocol's case
--------------------------+------------------------------
 Reporter:  mdawaffe      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by rmccue):

 Replying to [comment:2 alexvorn2]:
 > I think It should validate only for lower case http not HtTp

 It's completely case-insensitive, so both of those are equivalent, but the
 canonical form should always be 'http'.

 (From memory, there may be further code in `SimplePie_IRI` that can be
 ripped out for this, but that's fairly heavy.)

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


More information about the wp-trac mailing list