Skip to content

Commit 7879757

Browse files
committed
Merge branch '2.5.x' into 2.6.x
2 parents 86c75b7 + fa6a146 commit 7879757

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-boot-tests/spring-boot-smoke-tests/spring-boot-smoke-test-jetty-jsp/src/test/java/smoketest/jetty/jsp/SampleWebJspApplicationTests.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
package smoketest.jetty.jsp;
1818

19+
import org.eclipse.jetty.server.AllowedResourceAliasChecker;
1920
import org.eclipse.jetty.server.handler.ContextHandler;
2021
import org.junit.jupiter.api.Test;
2122

@@ -59,7 +60,7 @@ static class JettyCustomizerConfig {
5960
JettyServerCustomizer jettyServerCustomizer() {
6061
return (server) -> {
6162
ContextHandler handler = (ContextHandler) server.getHandler();
62-
handler.addAliasCheck((path, resource) -> true);
63+
handler.addAliasCheck(new AllowedResourceAliasChecker(handler));
6364
};
6465
}
6566

0 commit comments

Comments
 (0)