[wp-trac] [WordPress Trac] #3504: Post Meta Adding Slashes
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 29 14:43:03 GMT 2006
#3504: Post Meta Adding Slashes
----------------------------+-----------------------------------------------
Reporter: cpoteet | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 2.2
Component: Administration | Version: 2.0.5
Severity: normal | Keywords:
----------------------------+-----------------------------------------------
The custom fields function in version 2.05 adds a slash before apostrophes
and quotations for the SQL insert.
{{{
$value = maybe_serialize($value);
$value = $wpdb->escape($value);
$value = stripslashes($value); // Added to remove slashes before insert
}}}
--
Ticket URL: <http://trac.wordpress.org/ticket/3504>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list