Merge branch '6.1.x'

This commit is contained in:
rstoyanchev 2024-09-20 09:33:09 +01:00
commit 6120076437
1 changed files with 1 additions and 1 deletions

View File

@ -212,7 +212,7 @@ class PathResourceLookupFunction implements Function<ServerRequest, Mono<Resourc
return true;
}
locationPath = (locationPath.endsWith("/") || locationPath.isEmpty() ? locationPath : locationPath + "/");
return (resourcePath.startsWith(locationPath) && !isInvalidEncodedInputPath(resourcePath));
return (resourcePath.startsWith(locationPath) && !isInvalidEncodedResourcePath(resourcePath));
}
private boolean isInvalidEncodedResourcePath(String resourcePath) {