diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-12 12:03:39 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-12 12:03:39 +0100 |
commit | 0f44c6d918a2932b68019c02de5bc55e7057600a (patch) | |
tree | 304bc817aa158582a3eab32ee81e06fd0b7e0829 /app/fn | |
parent | 89b05effb2eb45382762fcfcfae2373b7754caa7 (diff) | |
download | wcms-0f44c6d918a2932b68019c02de5bc55e7057600a.tar.gz wcms-0f44c6d918a2932b68019c02de5bc55e7057600a.zip |
wiki-url
Diffstat (limited to 'app/fn')
-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))); |