1
0
mirror of https://github.com/Stirling-Tools/Stirling-PDF.git synced 2024-06-28 13:44:33 +02:00

Sanitized user-provided file names in HTTP multipart uploads

This commit is contained in:
pixeebot[bot] 2024-02-10 00:08:18 +00:00
parent 96e399a617
commit 68c0941666

View File

@ -75,7 +75,7 @@ public class ShowJavascript {
return WebResponseUtils.bytesToWebResponse(
script.getBytes(StandardCharsets.UTF_8),
inputFile.getOriginalFilename() + ".js");
Filenames.toSimpleFileName(inputFile.getOriginalFilename()) + ".js");
}
}
}