diff --git a/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java b/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java index 0df77bca7..2a4a3f665 100644 --- a/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java +++ b/app/core/src/main/java/stirling/software/SPDF/controller/api/misc/StampController.java @@ -72,10 +72,13 @@ public class StampController { MultipartFile stampImage = request.getStampImage(); if ("image".equalsIgnoreCase(stampType)) { if (stampImage == null) { - throw new IllegalArgumentException("Stamp image file must be provided when stamp type is 'image'"); + throw new IllegalArgumentException( + "Stamp image file must be provided when stamp type is 'image'"); } String stampImageName = stampImage.getOriginalFilename(); - if (stampImageName == null || stampImageName.contains("..") || stampImageName.startsWith("/")) { + if (stampImageName == null + || stampImageName.contains("..") + || stampImageName.startsWith("/")) { throw new IllegalArgumentException("Invalid stamp image file path"); } }