Ticket #10041: 10041.2.diff
File 10041.2.diff, 436 bytes (added by , 15 years ago) |
---|
-
wp-includes/formatting.php
2329 2329 * @return string text, safe for inclusion in LIKE query. 2330 2330 */ 2331 2331 function like_escape($text) { 2332 return str_replace(array("%", "_"), array("\\%", "\\_"), $text);2332 return esc_sql(addcslashes($text, '\\_%')); 2333 2333 } 2334 2334 2335 2335 /**