2018-03-15

This commit is contained in:
Visman 2018-03-15 17:28:19 +07:00
parent 3f031dba46
commit 3d3f4596af

View file

@ -53,7 +53,7 @@ class Filter extends Action
break;
case 'LIKE':
$where[] = "u.{$field} LIKE ?{$fields[$field]}";
$vars[] = \str_replace(['*', '_'], ['%', '\\_'], $rule[1]);
$vars[] = \str_replace(['%', '*', '_'], ['\\%', '%', '\\_'], $rule[1]);
break;
default:
throw new InvalidArgumentException('The condition is not clear');