[wp-trac] Re: [WordPress Trac] #10041: like_escape() should escape backslashes too

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 5 12:04:39 GMT 2009


#10041: like_escape() should escape backslashes too
--------------------------+-------------------------------------------------
 Reporter:  miau_jp       |       Owner:  Denis-de-Bernardy
     Type:  defect (bug)  |      Status:  accepted         
 Priority:  low           |   Milestone:  2.9              
Component:  Formatting    |     Version:  2.8              
 Severity:  minor         |    Keywords:  needs-patch early
--------------------------+-------------------------------------------------

Comment(by Denis-de-Bernardy):

 this is probably good enough as a fix:

 {{{
 return addcslashes($text, '%_');
 }}}

 It's like... WP isn't mb_string safe anyway.

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


More information about the wp-trac mailing list