mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 14:40:00 +00:00
Merge branch '6.1.x'
This commit is contained in:
+1
-1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user