[wp-trac] Re: [WordPress Trac] #9640: wp_update_user() blindly calls add_magic_quotes(), even on objects

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 29 18:47:50 GMT 2009


#9640: wp_update_user() blindly calls add_magic_quotes(), even on objects
--------------------------+-------------------------------------------------
 Reporter:  misterbisson  |        Owner:          
     Type:  defect (bug)  |       Status:  reopened
 Priority:  normal        |    Milestone:  2.8     
Component:  Users         |      Version:  2.8     
 Severity:  normal        |   Resolution:          
 Keywords:  dev-feedback  |  
--------------------------+-------------------------------------------------
Changes (by Denis-de-Bernardy):

  * keywords:  has-patch needs-testing => dev-feedback


Comment:

 mm... it seems to me that this won't escape anything in any useful way:

 {{{
 $array = add_magic_quotes( get_object_vars( $array ) );
 }}}

 it seems that an object then gets turned into an array and gets stored as
 such. :-|

 if there is no way to iterate over an object in php 4.3, we should either
 close as wontfix or change the workflow entirely.

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


More information about the wp-trac mailing list