[wp-trac] Re: [WordPress Trac] #9822: Quick Edit loses \ in the post content

WordPress Trac wp-trac at lists.automattic.com
Thu May 14 19:38:17 GMT 2009


#9822: Quick Edit loses \ in the post content
--------------------------+-------------------------------------------------
 Reporter:  hailin        |       Owner:     
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.8
Component:  General       |     Version:     
 Severity:  normal        |    Keywords:     
--------------------------+-------------------------------------------------

Comment(by hailin):

 $wpdb->prepare seems to addslashes to vars.

 So it seems when we call $wpdb->prepare, we need to "stripslashes" vars
 first, if the var is from usr input, say $_GET['key']

 Seems this convention is not followed. Correct me if I'm wrong.

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


More information about the wp-trac mailing list