[wp-trac] [WordPress Trac] #4903: query strings with a forward slash give add_query_arg() problems

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 4 05:15:17 GMT 2007


#4903: query strings with a forward slash give add_query_arg() problems
-------------------------+--------------------------------------------------
 Reporter:  markjaquith  |       Owner:  markjaquith
     Type:  defect       |      Status:  new        
 Priority:  high         |   Milestone:  2.3        
Component:  General      |     Version:  2.3        
 Severity:  normal       |    Keywords:             
-------------------------+--------------------------------------------------
 {{{
 echo remove_query_arg('preview', 'p=16&preview=true/');
 }}}

 Expected result:

 {{{
 p=16
 }}}

 Actual result:

 {{{
 p=16&preview=true/
 }}}

 add_query_arg() is checking for a forward slash in the passed {{{$uri}}}.
 If present, it is assumed that {{{$uri}}} is a base with an empty query
 string, instead of being a pure query string.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/4903>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list