Merge branch '5.1.x'

This commit is contained in:
Rossen Stoyanchev
2019-08-21 10:21:32 +03:00
10 changed files with 115 additions and 15 deletions

View File

@@ -106,6 +106,13 @@ public class PathResourceResolverTests {
assertThat(actual).isNull();
}
@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(