[wp-trac] [WordPress Trac] #23284: Wrong parameter order for stripos in wp-includes/functions.php

WordPress Trac noreply at wordpress.org
Wed Feb 6 10:33:01 UTC 2013


#23284: Wrong parameter order for stripos in wp-includes/functions.php
--------------------------+------------------
 Reporter:  Kalindor      |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.6
Component:  General       |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by SergeyBiryukov):

 Replying to [comment:3 nacin]:
 > By this point, a URL will not have `=` as long as it has a protocol,
 because that means it also must have a `?`, which is the earlier `if`
 branch. A URL like 'http://example.com/=' isn't valid, but is the only
 thing that would fail here.

 #23402 has ​http://www.nanowerk.com/news2/newsid=28843.php as an example.

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


More information about the wp-trac mailing list