Ticket #10041: 10041.diff
File 10041.diff, 425 bytes (added by , 15 years ago) |
---|
-
wp-includes/formatting.php
2266 2266 * @return string text, safe for inclusion in LIKE query. 2267 2267 */ 2268 2268 function like_escape($text) { 2269 return str_replace(array("%", "_"), array("\\%", "\\_"), $text);2269 return addcslashes($text, '%_'); 2270 2270 } 2271 2271 2272 2272 /**