Allow non-ASCII characters in file names of uploaded files (closes #2484)

This commit is contained in:
Bernd Bestel
2024-08-19 20:51:47 +02:00
parent 5a2600209f
commit c21090f522
6 changed files with 8 additions and 9 deletions

View File

@@ -205,6 +205,9 @@ function CleanFileName(fileName)
// Multiple spaces seem to be a problem, so simply strip them all
fileName = fileName.replace(/\s+/g, "");
// Remove any non-ASCII character
fileName = fileName.replace(/[^\x00-\x7F]/g, "");
return fileName;
}