mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-11-09 11:10:08 +01:00
fix: replace mb_strlen/mb_substr with strlen/substr — mbstring not available on prod
This commit is contained in:
1 parent
9eec5d3ac0
commit
7117934d07
4 files changed
+6
-50
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user