fix: replace mb_strlen/mb_substr with strlen/substr — mbstring not available on prod

This commit is contained in:
Pontoporeia
2026-04-08 17:42:01 +02:00
parent 9eec5d3ac0
commit 7117934d07
4 changed files with 6 additions and 50 deletions

View File

@@ -211,7 +211,7 @@ class SearchController
$out = [];
foreach ($raw as $v) {
$v = trim((string)$v);
if ($v !== '' && mb_strlen($v) <= $maxLen) {
if ($v !== '' && strlen($v) <= $maxLen) {
$out[] = $v;
}
}