Skip to content

Commit 94c0482

Browse files
Andrey Popovrstoyanchev
Andrey Popov
authored andcommitted
Use correct method to check encoded resource path
Closes: gh-33568
1 parent 776811b commit 94c0482

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-webflux/src/main/java/org/springframework/web/reactive/function/server/PathResourceLookupFunction.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ else if (resource instanceof ClassPathResource classPathResource) {
212212
return true;
213213
}
214214
locationPath = (locationPath.endsWith("/") || locationPath.isEmpty() ? locationPath : locationPath + "/");
215-
return (resourcePath.startsWith(locationPath) && !isInvalidEncodedInputPath(resourcePath));
215+
return (resourcePath.startsWith(locationPath) && !isInvalidEncodedResourcePath(resourcePath));
216216
}
217217

218218
private boolean isInvalidEncodedResourcePath(String resourcePath) {

0 commit comments

Comments
 (0)