[wp-trac] Re: [WordPress Trac] #3504: Post Meta Adding Slashes

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 29 14:43:45 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          |   Resolution:           
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by cpoteet):

 Replying to [ticket:3504 cpoteet]:
 > 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
 > }}}

 Sorry, that was in /wp-includes/functions.php at line 460.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/3504#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list