Add "?" to replace one character in user filter

This commit is contained in:
Visman 2023-06-20 18:05:54 +07:00
parent 5b4bf5fa68
commit 6753fd0fca

View file

@ -62,7 +62,7 @@ class Filter extends Action
// кроме * есть другие символы
if ('' != \trim($rule[1], '*')) {
$where[] = "u.{$field} {$like} ?{$fields[$field]} ESCAPE '#'";
$vars[] = \str_replace(['#', '%', '_', '*'], ['##', '#%', '#_', '%'], $rule[1]);
$vars[] = \str_replace(['#', '%', '_', '*', '?'], ['##', '#%', '#_', '%', '_'], $rule[1]);
}
break;