diff --git a/src/core/controllers/AutoCompleteController.php b/src/core/controllers/AutoCompleteController.php index ce1f2fc2d8432b4fed9243049ddc9cfa724b2ad3..ca96fe39e0460260516d3e8b3349cc1b2dde0785 100755 --- a/src/core/controllers/AutoCompleteController.php +++ b/src/core/controllers/AutoCompleteController.php @@ -644,11 +644,11 @@ class AutoCompleteController $data['address'] = str_replace(['*', '~', '-', '\''], ' ', $data['address']); $aAddress = explode(' ', $data['address']); foreach ($aAddress as $key => $value) { - if (strlen($value) <= 2 && !is_numeric($value)) { + if (mb_strlen($value) <= 2 && !is_numeric($value)) { unset($aAddress[$key]); continue; } - if (strlen($value) >= 3 && $value != 'rue' && $value != 'avenue' && $value != 'boulevard') { + if (mb_strlen($value) >= 3 && $value != 'rue' && $value != 'avenue' && $value != 'boulevard') { $aAddress[$key] .= '*'; } }