Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
hp-smart
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
platform
hp-smart
Commits
a7ba3511
Commit
a7ba3511
authored
Mar 12, 2024
by
wuwenlong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
反射性XSS注入
parent
e47680ef
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
XSSFilterConfig.java
src/main/java/com/baosight/hpjx/xss/XSSFilterConfig.java
+3
-5
No files found.
src/main/java/com/baosight/hpjx/xss/XSSFilterConfig.java
View file @
a7ba3511
package
com
.
baosight
.
hpjx
.
xss
;
import
com.baosight.iplat4j.core.web.filter.GetXssFilter
;
import
org.springframework.boot.web.servlet.FilterRegistrationBean
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
@Configuration
public
class
XSSFilterConfig
{
@Bean
GetXss
Filter
xssFilter
()
{
GetXssFilter
xssFilter
=
new
GetXss
Filter
();
XSS
Filter
xssFilter
()
{
XSSFilter
xssFilter
=
new
XSS
Filter
();
return
xssFilter
;
}
@Bean
public
FilterRegistrationBean
xssFilterRegistrationBean
(
GetXss
Filter
xssFilter
)
{
public
FilterRegistrationBean
xssFilterRegistrationBean
(
XSS
Filter
xssFilter
)
{
FilterRegistrationBean
registrationBean
=
new
FilterRegistrationBean
(
xssFilter
);
//
registrationBean
.
setOrder
(-
105
);
return
registrationBean
;
}
...
...
Write
Preview
Markdown
is supported
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