[wp-trac] [WordPress Trac] #10041: like_escape() should escape backslashes too
WordPress Trac
noreply at wordpress.org
Sun May 18 20:24:04 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 miqrogroove):
I'll add tests on the next refresh, sure. I was thinking it would make
sense to also add like-special chars from other SQL flavors so that the
unit tests can give accurate results on exotic servers. In those
situations the MySQL tests might pass, but an asterisk or a [ could break
our flavor of escaping.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/10041#comment:41>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list