[wp-trac] [WordPress Trac] #10041: like_escape() should escape backslashes too
WordPress Trac
wp-trac at lists.automattic.com
Fri Feb 5 01:34:22 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 guess we need to ask ourselves, what's the difference between these two
queries?
SELECT 'hello\'world' LIKE 'hello\'world';
SELECT 'hello\'world' LIKE 'hello\\\'world';
If you say there's no difference, then we can safely ignore quotes in
like_escape(). If you are confused and think this makes no sense, then
the extra slashes help explain what's going on.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10041#comment:12>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list