[mfUpload] fixed when using uppercase Ä Ö Ü as upload would just silently fail

This commit is contained in:
Luca Haid
2024-04-10 10:15:45 +02:00
parent 773651da21
commit e4760facb3

View File

@@ -89,8 +89,8 @@ class mfUpload_TmpFile {
return false;
}
$filename = preg_replace('/[^a-z0-9$()+%äöüß._-]/i', '_', $filename);
$filename = preg_replace('/[^a-z0-9$()+%äöüß\[\]&#;,._-]/i', '_', $filename);
$filename = preg_replace('/[^a-z0-9$()+%äöüÄÖÜß._-]/i', '_', $filename);
$filename = preg_replace('/[^a-z0-9$()+%äöüÄÖÜß\[\]&#;,._-]/i', '_', $filename);
$parts = explode(".",$filename);
$ext = strtolower(array_pop($parts));