[wp-trac] [WordPress Trac] #9638: add_magic_quotes() fails on
objects
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 24 18:06:03 GMT 2009
#9638: add_magic_quotes() fails on objects
--------------------------+-------------------------------------------------
Reporter: misterbisson | Owner: anonymous
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
objects passed to add_magic_quotes() are assumed to be strings and passed
along to wpdb::escape(), causing PHP to die with the following error:
{{{
Catchable fatal error: Object of class stdClass could not be converted to
string in /web/ven/wp-includes/wp-db.php on line 472
}}}
http://core.trac.wordpress.org/browser/trunk/wp-includes/functions.php
This probably wouldn't be a problem, but wp_update_user() blindly calls
add_magic_quotes() on all user meta, some of which might be an object.
http://core.trac.wordpress.org/browser/trunk/wp-includes/registration.php
--
Ticket URL: <http://core.trac.wordpress.org/ticket/9638>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list