Skip to content
Snippets Groups Projects
Verified Commit d6661420 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #14925 TIME 0:05 improve controle on BAN autocomplete

parent 8c652e7f
No related branches found
No related tags found
No related merge requests found
......@@ -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] .= '*';
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment