[wp-trac] [WordPress Trac] #2564: mysql2date() preg_replace() misinterpretation

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 13 10:50:16 GMT 2006


#2564: mysql2date() preg_replace() misinterpretation
-----------------------+----------------------------------------------------
       Id:  2564       |      Status:  new                     
Component:  General    |    Modified:  Mon Mar 13 10:50:16 2006
 Severity:  normal     |   Milestone:  2.1                     
 Priority:  normal     |     Version:  2.0.1                   
    Owner:  anonymous  |    Reporter:  tenpura                 
-----------------------+----------------------------------------------------
 preg_replace() in mysql2date() is using "\\1" as backreference and if this
 is immediately followed by a literal number, misinterpretation occurs.

 Suggested Solution:
 use "\${1}" instead of "\\1"

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2564>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list