Suppress decoding error for resource path
Closes gh-23463
This commit is contained in:
@@ -109,6 +109,13 @@ public class PathResourceResolverTests {
|
||||
assertNull(actual);
|
||||
}
|
||||
|
||||
@Test // gh-23463
|
||||
public void ignoreInvalidEscapeSequence() throws IOException {
|
||||
UrlResource location = new UrlResource(getClass().getResource("./test/"));
|
||||
Resource resource = location.createRelative("test%file.txt");
|
||||
assertTrue(this.resolver.checkResource(resource, location));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void checkResourceWithAllowedLocations() {
|
||||
this.resolver.setAllowedLocations(
|
||||
|
||||
Reference in New Issue
Block a user