From: Pierre Rudloff Date: Mon, 18 Dec 2017 14:23:15 +0000 (+0100) Subject: Use LIKE instead of REGEXP in api_search X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=02733c66f393caa031e1c3ec87cc1456cd0a9ff1;p=friendica.git Use LIKE instead of REGEXP in api_search --- diff --git a/include/api.php b/include/api.php index 39a1f03185..c359c65f1a 100644 --- a/include/api.php +++ b/include/api.php @@ -1526,7 +1526,7 @@ function api_search($type) "SELECT ".item_fieldlists()." FROM `item` ".item_joins()." WHERE ".item_condition()." AND (`item`.`uid` = 0 OR (`item`.`uid` = ? AND NOT `item`.`global`)) - AND `item`.`body` REGEXP ? + AND `item`.`body` LIKE CONCAT('%',?,'%') $sql_extra AND `item`.`id`>? ORDER BY `item`.`id` DESC LIMIT ".intval($start)." ,".intval($count)." ",