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

WordPress Trac wp-trac at lists.automattic.com
Fri Feb 5 00:37:42 UTC 2010


#10041: like_escape() should escape backslashes too
--------------------------------------------+-------------------------------
 Reporter:  miau_jp                         |        Owner:          
     Type:  defect (bug)                    |       Status:  reopened
 Priority:  low                             |    Milestone:  3.0     
Component:  Formatting                      |      Version:  2.8     
 Severity:  minor                           |   Resolution:          
 Keywords:  has-patch early has-unit-tests  |  
--------------------------------------------+-------------------------------

Comment(by miqrogroove):

 I posted these two examples at the mysql.com string comparison page.
 There's no need to support both of them, but it is an interesting
 exercise.

 SELECT 'hello\\\\\'world' LIKE 'hello\\\\\\\\\\\'world'

 or

 SELECT 'hello\\\\\'world' LIKE 'hello|\\|\\|\'world' ESCAPE '|'

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


More information about the wp-trac mailing list