Fix download issue with Chrome

This commit is contained in:
Olivier Berten 2021-01-15 23:28:08 +01:00
parent b8b650e3dc
commit bd05f04fe4

View File

@ -26,8 +26,10 @@ function cleanString($string) {
$string = str_replace('Æ','ae', $string);
$string = str_replace('æ','ae', $string);
$string = str_replace('œ','oe', $string);
$string = preg_replace("/[^a-z\d-_ ]/i","", $string);
setlocale(LC_ALL, "en_US.utf8");
$string = iconv("utf-8", "ascii//TRANSLIT", $string);
$string = str_replace(" ","_", trim($string));
$string = str_replace(",","", trim($string));
$string = strtolower($string);
return $string;
}