[wp-trac] [WordPress Trac] #11608: wpdb->prepare() is broken

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 24 23:41:00 UTC 2009


#11608: wpdb->prepare() is broken
-----------------------------+----------------------------------------------
 Reporter:  hakre            |       Owner:  ryan                    
     Type:  feature request  |      Status:  new                     
 Priority:  normal           |   Milestone:  Future Release          
Component:  Database         |     Version:  2.9                     
 Severity:  normal           |    Keywords:  needs-patch dev-feedback
-----------------------------+----------------------------------------------

Comment(by dd32):

 > Now you might have a problem.

 Yes, And escaping it correctly will resolve that. You need to follow the
 same rules that sprintf() would require, As specified in the docs.

 What is your preferred alternative? Any ideas of how it should work
 underneath? or on top?

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


More information about the wp-trac mailing list