Skip to content

Commit cff6db0

Browse files
committed
Merge branch '6.1.x'
2 parents 1a0b577 + 3bfbe30 commit cff6db0

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

spring-webflux/src/test/java/org/springframework/web/reactive/resource/ResourceWebHandlerTests.java

-2
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,6 @@ void shouldRejectInvalidPath() throws Exception {
665665
testInvalidPath("/../.." + secretPath, handler);
666666
testInvalidPath("/%2E%2E/testsecret/secret.txt", handler);
667667
testInvalidPath("/%2E%2E/testsecret/secret.txt", handler);
668-
testInvalidPath("%2F%2F%2E%2E%2F%2F%2E%2E" + secretPath, handler);
669668
}
670669

671670
private void testInvalidPath(String requestPath, ResourceWebHandler handler) {
@@ -701,7 +700,6 @@ void resolvePathWithTraversal(HttpMethod method) throws Exception {
701700
testResolvePathWithTraversal(method, "/url:" + secretPath);
702701
testResolvePathWithTraversal(method, "////../.." + secretPath);
703702
testResolvePathWithTraversal(method, "/%2E%2E/testsecret/secret.txt");
704-
testResolvePathWithTraversal(method, "%2F%2F%2E%2E%2F%2Ftestsecret/secret.txt");
705703
testResolvePathWithTraversal(method, "url:" + secretPath);
706704

707705
// The following tests fail with a MalformedURLException on Windows

spring-webmvc/src/test/java/org/springframework/web/servlet/resource/ResourceHttpRequestHandlerTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -657,7 +657,6 @@ void shouldRejectInvalidPath() throws Exception {
657657
testInvalidPath("/../.." + secretPath);
658658
testInvalidPath("/%2E%2E/testsecret/secret.txt");
659659
testInvalidPath("/%2E%2E/testsecret/secret.txt");
660-
testInvalidPath("%2F%2F%2E%2E%2F%2F%2E%2E" + secretPath);
661660
}
662661

663662
private void testInvalidPath(String requestPath) {

0 commit comments

Comments
 (0)