Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
RuoYi Vue
Commits
9a7bb81c
Commit
9a7bb81c
authored
Nov 19, 2021
by
疯狂的狮子li
Browse files
fix 修复关闭 xss 功能导致可重复读 RepeatableFilter 失效
parent
fcf606ac
Changes
1
Hide whitespace changes
Inline
Side-by-side
ruoyi-framework/src/main/java/com/ruoyi/framework/config/FilterConfig.java
View file @
9a7bb81c
...
...
@@ -18,7 +18,6 @@ import com.ruoyi.common.utils.StringUtils;
* @author ruoyi
*/
@Configuration
@ConditionalOnProperty
(
value
=
"xss.enabled"
,
havingValue
=
"true"
)
public
class
FilterConfig
{
@Value
(
"${xss.excludes}"
)
...
...
@@ -29,6 +28,7 @@ public class FilterConfig
@SuppressWarnings
({
"rawtypes"
,
"unchecked"
})
@Bean
@ConditionalOnProperty
(
value
=
"xss.enabled"
,
havingValue
=
"true"
)
public
FilterRegistrationBean
xssFilterRegistration
()
{
FilterRegistrationBean
registration
=
new
FilterRegistrationBean
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment