|
|
@@ -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;
|