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

WordPress Trac noreply at wordpress.org
Sun Mar 3 16:55:33 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.5.2
Component:  General       |     Version:  3.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+--------------------
Changes (by andykeith):

 * cc: andykeith (added)


Comment:

 This also causes problems when using [http://code.google.com/p/minify/
 Minify] as its [http://code.google.com/p/minify/wiki/UriRewriting/ URL
 rewriting] allows URLs of the form !http://example.org/g=css or
 !http://example.org/min/f=style.css.

 As it stands in 3.5.1, dots are replaced with underscores (also reported
 in [http://core.trac.wordpress.org/ticket/23402 #23402]), e.g.
 {{{
 add_query_arg('foo', 'bar', 'http://example.org/g=css') =
 'http://example_org/g=css?foo=bar'
 }}}

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


More information about the wp-trac mailing list