Просмотр исходного кода

TscXssServletFilter -> GagaXssServletFilter로 변경

gagamel 4 лет назад
Родитель
Сommit
5f9d6ee9d0

+ 2 - 3
src/main/java/com/style24/admin/support/config/TsaWebMvcConfig.java

@@ -23,9 +23,9 @@ import com.fasterxml.jackson.databind.ObjectMapper;
 import com.style24.admin.support.interceptor.TsaDefaultInterceptor;
 import com.style24.admin.support.interceptor.TsaPosInterceptor;
 import com.style24.admin.support.readable.TsaRequestFilter;
-import com.style24.core.support.filter.TscXssServletFilter;
 import com.style24.core.support.text.TscHtmlCharacterEscapes;
 
+import com.gagaframework.web.core.filter.GagaXssServletFilter;
 import com.gagaframework.web.rest.client.GagaRequestStringTrim;
 
 /**
@@ -92,8 +92,7 @@ public class TsaWebMvcConfig implements WebMvcConfigurer {
 	@Bean
 	public FilterRegistrationBean xssFilterRegistrationBean() {
 		FilterRegistrationBean bean = new FilterRegistrationBean();
-//		bean.setFilter(new GagaXssServletFilter());
-		bean.setFilter(new TscXssServletFilter());
+		bean.setFilter(new GagaXssServletFilter());
 		bean.setOrder(2);
 		bean.addUrlPatterns("/*");
 		return bean;