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

WordPress Trac noreply at wordpress.org
Wed May 14 23:44:22 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):

 Based on initial feedback from nacin, I've attached miqro-10041.3.patch.

 * Moved the new function to wpdb::esc_like()
 * Added 2 more calls to prepare() in wp-includes/query.php for
 consistency.
 * Refreshed all calls to the new function.
 * Refreshed the new unit tests.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/10041#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list