[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 11:02:44 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:  has-patch needs-testing  |  
-------------------------------------+--------------------------------------

Comment(by hakre):

 @Denis: Escape objects: I thought about doing so, but there is no luck
 with iterating over objects with PHP 4.3.

 But more clearly spoken: there is nothing hiding under the rug, the patch
 just properly sanitizes the functions processes now. as you can read with
 the phpdoc comment (not from me), this function is for arrays only. since
 i use recursion I allowed mixed but from the documented description (and
 that should guide) I see no problems with having a properly working
 function here.

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


More information about the wp-trac mailing list