From 6634b5d6e432c5f5947d1c433413d71dcd328fc4 Mon Sep 17 00:00:00 2001 From: "stirlingbot[bot]" <195170888+stirlingbot[bot]@users.noreply.github.com> Date: Sat, 2 Aug 2025 23:19:52 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=A4=96=20format=20everything=20with=20pre?= =?UTF-8?q?-commit=20by=20stirlingbot=20(#4104)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Auto-generated by [create-pull-request][1] with **stirlingbot** [1]: https://github.com/peter-evans/create-pull-request Signed-off-by: stirlingbot[bot] Co-authored-by: stirlingbot[bot] <195170888+stirlingbot[bot]@users.noreply.github.com> --- .../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"); } }