Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
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
梁杰芳
slm-fileview
Commits
6255c8db
Commit
6255c8db
authored
Feb 19, 2021
by
fengzehao
Committed by
kl
Feb 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify some bug
parent
1fd7d5df
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
TrustHostFilter.java
...r/src/main/java/cn/keking/web/filter/TrustHostFilter.java
+3
-0
No files found.
server/src/main/java/cn/keking/web/filter/TrustHostFilter.java
View file @
6255c8db
...
@@ -34,6 +34,9 @@ public class TrustHostFilter implements Filter {
...
@@ -34,6 +34,9 @@ public class TrustHostFilter implements Filter {
@Override
@Override
public
void
doFilter
(
ServletRequest
request
,
ServletResponse
response
,
FilterChain
chain
)
throws
IOException
,
ServletException
{
public
void
doFilter
(
ServletRequest
request
,
ServletResponse
response
,
FilterChain
chain
)
throws
IOException
,
ServletException
{
String
url
=
getSourceUrl
(
request
);
String
url
=
getSourceUrl
(
request
);
if
(
url
!=
null
){
url
=
new
String
(
Base64Utils
.
decodeFromString
(
url
),
StandardCharsets
.
UTF_8
);
}
String
host
=
getHost
(
url
);
String
host
=
getHost
(
url
);
if
(
host
!=
null
&&!
ConfigConstants
.
getTrustHostSet
().
isEmpty
()
&&
!
ConfigConstants
.
getTrustHostSet
().
contains
(
host
))
{
if
(
host
!=
null
&&!
ConfigConstants
.
getTrustHostSet
().
isEmpty
()
&&
!
ConfigConstants
.
getTrustHostSet
().
contains
(
host
))
{
String
html
=
this
.
notTrustHost
.
replace
(
"${current_host}"
,
host
);
String
html
=
this
.
notTrustHost
.
replace
(
"${current_host}"
,
host
);
...
...
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