File tree 2 files changed +0
-3
lines changed
spring-webflux/src/test/java/org/springframework/web/reactive/resource
spring-webmvc/src/test/java/org/springframework/web/servlet/resource
2 files changed +0
-3
lines changed Original file line number Diff line number Diff line change @@ -665,7 +665,6 @@ void shouldRejectInvalidPath() throws Exception {
665
665
testInvalidPath ("/../.." + secretPath , handler );
666
666
testInvalidPath ("/%2E%2E/testsecret/secret.txt" , handler );
667
667
testInvalidPath ("/%2E%2E/testsecret/secret.txt" , handler );
668
- testInvalidPath ("%2F%2F%2E%2E%2F%2F%2E%2E" + secretPath , handler );
669
668
}
670
669
671
670
private void testInvalidPath (String requestPath , ResourceWebHandler handler ) {
@@ -701,7 +700,6 @@ void resolvePathWithTraversal(HttpMethod method) throws Exception {
701
700
testResolvePathWithTraversal (method , "/url:" + secretPath );
702
701
testResolvePathWithTraversal (method , "////../.." + secretPath );
703
702
testResolvePathWithTraversal (method , "/%2E%2E/testsecret/secret.txt" );
704
- testResolvePathWithTraversal (method , "%2F%2F%2E%2E%2F%2Ftestsecret/secret.txt" );
705
703
testResolvePathWithTraversal (method , "url:" + secretPath );
706
704
707
705
// The following tests fail with a MalformedURLException on Windows
Original file line number Diff line number Diff line change @@ -657,7 +657,6 @@ void shouldRejectInvalidPath() throws Exception {
657
657
testInvalidPath ("/../.." + secretPath );
658
658
testInvalidPath ("/%2E%2E/testsecret/secret.txt" );
659
659
testInvalidPath ("/%2E%2E/testsecret/secret.txt" );
660
- testInvalidPath ("%2F%2F%2E%2E%2F%2F%2E%2E" + secretPath );
661
660
}
662
661
663
662
private void testInvalidPath (String requestPath ) {
You can’t perform that action at this time.
0 commit comments