Pull request #33: Fixed filenames in download start with .

Merge in RED/persistence-service from DownloadFixNr2 to master

* commit 'deca0cbf5f119ca30195f0c81ed5b41a5f7772dc':
  Fixed filenames in download start with . what leads to invisible files
This commit is contained in:
Dominique Eiflaender 2021-10-01 16:22:15 +02:00
commit 1a3e10a04e

View File

@ -149,7 +149,7 @@ public class DownloadPreparationService {
private String removeExtension(String fileName) {
var index = fileName.lastIndexOf(".");
if (index > 0) {
return fileName.substring(index);
return fileName.substring(0, index);
} else {
return fileName;
}