diff options
Diffstat (limited to 'app/fn/fn.php')
-rw-r--r-- | app/fn/fn.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/fn/fn.php b/app/fn/fn.php index 03bb2d0..3c7d32c 100644 --- a/app/fn/fn.php +++ b/app/fn/fn.php @@ -73,8 +73,8 @@ function arrayclean($input) function idclean(string $input) { $input = urldecode($input); - $search = ['é', 'à', 'è', 'ç', ' ']; - $replace = ['e', 'a', 'e', 'c', '-']; + $search = ['é', 'à', 'è', 'ç', 'ù', 'ï', 'î', ' ']; + $replace = ['e', 'a', 'e', 'c', 'u', 'i', 'i', '-']; $input = str_replace($search, $replace, $input); return preg_replace('%[^a-z0-9-_+]%', '', strtolower(trim($input))); |