[wp-trac] [WordPress Trac] #17343: update_post_meta removes all slashes

WordPress Trac wp-trac at lists.automattic.com
Wed Sep 28 20:02:05 UTC 2011


#17343: update_post_meta removes all slashes
--------------------------+-----------------------
 Reporter:  5ubliminal    |       Owner:
     Type:  defect (bug)  |      Status:  reopened
 Priority:  normal        |   Milestone:
Component:  Plugins       |     Version:  3.3
 Severity:  blocker       |  Resolution:
 Keywords:                |
--------------------------+-----------------------
Changes (by jayarjo):

 * status:  closed => reopened
 * version:  3.1.1 => 3.3
 * resolution:  duplicate =>


Comment:

 Not sure why this has been closed, since the bug is still present in
 emerging 3.3 (http://core.trac.wordpress.org/browser/trunk/wp-
 includes/meta.php#L118). And while referenced tickets are related, they do
 not exactly cover mentioned bug. meta_value is stripslashed twice for meta
 that is being added (not updated) - here:
 http://core.trac.wordpress.org/browser/trunk/wp-includes/meta.php#L118 and
 then here: http://core.trac.wordpress.org/browser/trunk/wp-
 includes/meta.php#L47. This effectively strips off all slashes, even those
 that are meant to stay on the string.

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


More information about the wp-trac mailing list