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