[wp-trac] [WordPress Trac] #4105: add_query_arg treats slashes inconsistently and tries to do it after urlencoding

WordPress Trac wp-trac at lists.automattic.com
Fri Apr 6 23:48:16 GMT 2007


#4105: add_query_arg treats slashes inconsistently and tries to do it after
urlencoding
----------------------+-----------------------------------------------------
 Reporter:  mdawaffe  |       Owner:  anonymous
     Type:  defect    |      Status:  new      
 Priority:  low       |   Milestone:  2.2      
Component:  General   |     Version:  2.2      
 Severity:  major     |    Keywords:           
----------------------+-----------------------------------------------------
 parse_str() adds slashes if get_magic_quotes_gpc() is true, so
 add_query_arg() applies stripslashes() to its output in that case.

 However, not all of the query args are run through parse_str(), so
 add_query_arg() strips slashes from some things it should not.

 The problem is magnified by the fact that add_query_arg tries to
 stripslashes() only after ramurlencoding much of its ouput.

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


More information about the wp-trac mailing list