Ticket #9638 (closed defect (bug): duplicate)
add_magic_quotes() fails on objects
| Reported by: | misterbisson | Owned by: | anonymous |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | General | Version: | 2.7 |
| Severity: | normal | Keywords: | needs-patch reporder-feedback |
| Cc: | anmari, frenchtowner |
Description
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
Change History
Note: See
TracTickets for help on using
tickets.
