mirror of
https://github.com/grocy/grocy.git
synced 2025-08-16 10:44:37 +00:00
Workaround for file upload problem when the file name contains Umlaute (seems to be a Linux only issue, fixes #1382)
This commit is contained in:
@@ -196,3 +196,9 @@ function QrCodeImgHtml(text)
|
||||
|
||||
return img.outerHTML;
|
||||
}
|
||||
|
||||
function CleanFileName(fileName)
|
||||
{
|
||||
// Umlaute seem to cause problems on Linux...
|
||||
return fileName.toLowerCase().replaceAll(/ä/g, 'ae').replaceAll(/ö/g, 'oe').replaceAll(/ü/g, 'ue').replaceAll(/ß/g, 'ss');
|
||||
}
|
||||
|
Reference in New Issue
Block a user