Do not modify AliasChecks list from Jetty WebAppContext
Closes gh-29555 Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
committed by
Brian Clozel
parent
000cbfa2d9
commit
f1bbce1aac
@@ -218,7 +218,7 @@ public class JettyServletWebServerFactory extends AbstractServletWebServerFactor
|
||||
*/
|
||||
protected final void configureWebAppContext(WebAppContext context, ServletContextInitializer... initializers) {
|
||||
Assert.notNull(context, "Context must not be null");
|
||||
context.getAliasChecks().clear();
|
||||
context.clearAliasChecks();
|
||||
context.setTempDirectory(getTempDirectory());
|
||||
if (this.resourceLoader != null) {
|
||||
context.setClassLoader(this.resourceLoader.getClassLoader());
|
||||
|
||||
Reference in New Issue
Block a user