From c04a4bbd119a70b703eb50aa03fc2d229b0437e9 Mon Sep 17 00:00:00 2001 From: "stirlingbot[bot]" <195170888+stirlingbot[bot]@users.noreply.github.com> Date: Sat, 2 Aug 2025 22:22:09 +0000 Subject: [PATCH] :file_folder: pre-commit Signed-off-by: stirlingbot[bot] --- .../software/SPDF/controller/api/misc/StampController.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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"); } }