提交者
Gitee
!370 fix 修复关闭 xss 功能导致可重复读 RepeatableFilter 失效
Merge pull request !370 from 疯狂的狮子Li/master
正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -18,7 +18,6 @@ import com.ruoyi.common.utils.StringUtils; | @@ -18,7 +18,6 @@ import com.ruoyi.common.utils.StringUtils; | ||
| 18 | * @author ruoyi | 18 | * @author ruoyi |
| 19 | */ | 19 | */ |
| 20 | @Configuration | 20 | @Configuration |
| 21 | -@ConditionalOnProperty(value = "xss.enabled", havingValue = "true") | ||
| 22 | public class FilterConfig | 21 | public class FilterConfig |
| 23 | { | 22 | { |
| 24 | @Value("${xss.excludes}") | 23 | @Value("${xss.excludes}") |
| @@ -29,6 +28,7 @@ public class FilterConfig | @@ -29,6 +28,7 @@ public class FilterConfig | ||
| 29 | 28 | ||
| 30 | @SuppressWarnings({ "rawtypes", "unchecked" }) | 29 | @SuppressWarnings({ "rawtypes", "unchecked" }) |
| 31 | @Bean | 30 | @Bean |
| 31 | + @ConditionalOnProperty(value = "xss.enabled", havingValue = "true") | ||
| 32 | public FilterRegistrationBean xssFilterRegistration() | 32 | public FilterRegistrationBean xssFilterRegistration() |
| 33 | { | 33 | { |
| 34 | FilterRegistrationBean registration = new FilterRegistrationBean(); | 34 | FilterRegistrationBean registration = new FilterRegistrationBean(); |
-
请 注册 或 登录 后发表评论