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

WordPress Trac wp-trac at lists.automattic.com
Tue Dec 29 14:47:14 UTC 2009


#11608: wpdb->prepare() is broken
--------------------------+-------------------------------------------------
 Reporter:  hakre         |       Owner:  ryan     
     Type:  defect (bug)  |      Status:  new      
 Priority:  normal        |   Milestone:  3.0      
Component:  Database      |     Version:  2.9      
 Severity:  normal        |    Keywords:  has-patch
--------------------------+-------------------------------------------------

Comment(by hakre):

 Oh, I forgot one (and it's an important one):

  6. wpdb->prepare() does not properly substititue {{{'%%s'}}}.

 ''Regarding 6.:'' the fix-suggesting regex flavored alternative
 ([comment:10 ref. to dd32]) doesn't properly substitute {{{'%%%s'}}}.
 Naturally such cases are properly handeled in my patch.

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


More information about the wp-trac mailing list