mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-12 17:52:13 +02:00
Modernize and secure temp file creation
This commit is contained in:
parent
dfd567b803
commit
9863e161ac
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user