From 5843d13f6feb0daf0cad409e2d56ba3644554c4b Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Mon, 12 Aug 2024 14:47:17 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=BF=BD=E7=95=A5=E9=9D=99=E6=80=81?= =?UTF-8?q?=E8=B5=84=E6=BA=90=E7=9A=84=E5=BC=82=E5=B8=B8=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/handler/RestControllerExceptionHandler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/handler/RestControllerExceptionHandler.java b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/handler/RestControllerExceptionHandler.java index e6c31c18b8..3c14a6924f 100644 --- a/backend/services/system-setting/src/main/java/io/metersphere/system/controller/handler/RestControllerExceptionHandler.java +++ b/backend/services/system-setting/src/main/java/io/metersphere/system/controller/handler/RestControllerExceptionHandler.java @@ -123,7 +123,10 @@ public class RestControllerExceptionHandler { @ExceptionHandler({EofException.class}) public ResponseEntity handleEofException(HttpServletRequest request, Exception e) { String requestURI = request.getRequestURI(); - if (StringUtils.startsWith(requestURI, "/assets") || StringUtils.startsWith(requestURI, "/fonts")) { + if (StringUtils.startsWith(requestURI, "/assets") + || StringUtils.startsWith(requestURI, "/fonts") + || StringUtils.startsWith(requestURI, "/images") + || StringUtils.startsWith(requestURI, "/templates")) { return ResponseEntity.internalServerError().body(null); } return ResponseEntity.internalServerError()