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:
commit
1a3e10a04e
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user