[wp-trac] [WordPress Trac] #17923: add_query_arg() should encode values

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 9 06:29:51 UTC 2011


#17923: add_query_arg() should encode values
-----------------------------------+-----------------------------
 Reporter:  Viper007Bond           |       Owner:
     Type:  defect (bug)           |      Status:  new
 Priority:  normal                 |   Milestone:  Future Release
Component:  General                |     Version:  3.2
 Severity:  normal                 |  Resolution:
 Keywords:  needs-patch has-patch  |
-----------------------------------+-----------------------------

Comment (by Viper007Bond):

 Check out my code again. ;)  I wasn't suggesting running the whole `$qs`
 array through `rawurlencode()`, just the new arg.

 I was suggesting a code simplification by setting the element in the array
 regardless and then if encoding is enabled, going back and encoding it,
 much like is done with the array format.

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


More information about the wp-trac mailing list