[wp-trac] [WordPress Trac] #10041: like_escape() should escape backslashes too
WordPress Trac
noreply at wordpress.org
Mon May 19 14:43:55 UTC 2014
#10041: like_escape() should escape backslashes too
---------------------------------+-----------------------------
Reporter: miau_jp | Owner:
Type: defect (bug) | Status: reopened
Priority: high | Milestone: Future Release
Component: Formatting | Version: 2.8
Severity: normal | Resolution:
Keywords: 4.0-early has-patch | Focuses:
---------------------------------+-----------------------------
Comment (by Denis-de-Bernardy):
Oops, nevermind, I forgot to escape it in my Postgres tests. This
implementation yields the correct output after getting SQL escaped:
{{{
return addcslashes($str, '_%\\');
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10041#comment:45>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list