Use correct method to check encoded resource path
Closes: gh-33568
This commit is contained in:
parent
776811bdb8
commit
94c04821ff
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue