From 348dc1a11f46a21ac93ea10049aade335d138a49 Mon Sep 17 00:00:00 2001 From: yaoq Date: Wed, 20 Jul 2022 16:03:52 +0800 Subject: [PATCH] =?UTF-8?q?Xss=20=E8=BF=87=E6=BB=A4=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/cc/smtweb/framework/core/mvc/filter/XssSecurityConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/smtweb-framework/core/src/main/java/cc/smtweb/framework/core/mvc/filter/XssSecurityConfig.java b/smtweb-framework/core/src/main/java/cc/smtweb/framework/core/mvc/filter/XssSecurityConfig.java index 96055e2..f22f625 100644 --- a/smtweb-framework/core/src/main/java/cc/smtweb/framework/core/mvc/filter/XssSecurityConfig.java +++ b/smtweb-framework/core/src/main/java/cc/smtweb/framework/core/mvc/filter/XssSecurityConfig.java @@ -59,7 +59,7 @@ public class XssSecurityConfig implements InitializingBean { @Override public void afterPropertiesSet() throws Exception { - if (regex == null || regex.size() == 0) { + if (!initSuccess()) { return; } StringBuffer tempStr = new StringBuffer("^");