Modernize and secure temp file creation

This commit is contained in:
pixeebot[bot] 2025-03-25 17:46:54 +00:00 committed by GitHub
parent dfd567b803
commit 9863e161ac
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -148,7 +148,7 @@ public class MergeController {
mergerUtility.addSource(tempFile); // Add source file to the merger utility
}
mergedTempFile = File.createTempFile("merged-", ".pdf");
mergedTempFile = Files.createTempFile("merged-", ".pdf").toFile();
mergerUtility.setDestinationFileName(mergedTempFile.getAbsolutePath());
mergerUtility.mergeDocuments(