Sanitized user-provided file names in HTTP multipart uploads
This commit is contained in:
parent
4af58118c9
commit
4e937a6024
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,7 @@ public class ShowJavascript {
|
|||
|
||||
if (script.isEmpty()) {
|
||||
script =
|
||||
"PDF '" + inputFile.getOriginalFilename() + "' does not contain Javascript";
|
||||
"PDF '" + Filenames.toSimpleFileName(inputFile.getOriginalFilename()) + "' does not contain Javascript";
|
||||
}
|
||||
|
||||
return WebResponseUtils.bytesToWebResponse(
|
||||
|
|
Loading…
Reference in a new issue