From 6c31dbaedefb3ff10375322c869569d0b1e9449d Mon Sep 17 00:00:00 2001 From: spring-builds Date: Fri, 14 Mar 2025 00:50:56 +0000 Subject: [PATCH] Bumping versions --- .../springframework/cloud/config/server/support/PathUtils.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/PathUtils.java b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/PathUtils.java index fb9bc615..f4b29c37 100644 --- a/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/PathUtils.java +++ b/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/support/PathUtils.java @@ -269,7 +269,8 @@ public abstract class PathUtils { } locationPath = (locationPath.endsWith("/") || locationPath.isEmpty() ? locationPath : locationPath + "/"); String encodedLocationPath = locationPath.endsWith("/") - ? locationPath.substring(0, locationPath.length() - 1) + URLEncoder.encode("/", StandardCharsets.UTF_8) : locationPath; + ? locationPath.substring(0, locationPath.length() - 1) + URLEncoder.encode("/", StandardCharsets.UTF_8) + : locationPath; return ((resourcePath.startsWith(locationPath) || resourcePath.startsWith(encodedLocationPath)) && !isInvalidEncodedPath(resourcePath)); }