#3504 closed defect (bug) (wontfix)
Post Meta Adding Slashes
Reported by: | cpoteet | Owned by: | |
---|---|---|---|
Milestone: | Priority: | high | |
Severity: | normal | Version: | 2.0.5 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
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
Change History (4)
#1
in reply to:
↑ description
@
17 years ago
#2
@
17 years ago
- Milestone changed from 2.2 to 2.0.6
Isn't the whole point of $wpdb->escape()
to add slashes so it can safely be inserted into the database?
If there really is a slash problem, then it should be handled on the way out of the database.
And not sure about 2.0.6 vs. 2.0.7, but I've marked it as 2.0.6 just to be safe, especially since this is rather minor.
Note: See
TracTickets for help on using
tickets.
Replying to cpoteet:
Sorry, that was in /wp-includes/functions.php at line 460.