Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nouiWithSpringMVC
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
gechengyang
nouiWithSpringMVC
Commits
854fc17d
Commit
854fc17d
authored
Oct 29, 2020
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加报文越权补充安全措施
parent
dffafa30
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
1 deletions
+12
-1
AbstractCommonController.java
...resentation/noui/controller/AbstractCommonController.java
+12
-1
No files found.
src/main/java/org/sss/presentation/noui/controller/AbstractCommonController.java
View file @
854fc17d
...
@@ -88,7 +88,6 @@ public abstract class AbstractCommonController {
...
@@ -88,7 +88,6 @@ public abstract class AbstractCommonController {
//数据安全性拦截-篡改数据拦截
//数据安全性拦截-篡改数据拦截
if
(
DataSecurityUtil
.
isSafeMode
()
&&
noUiRequest
.
isSecurity
())
{
if
(
DataSecurityUtil
.
isSafeMode
()
&&
noUiRequest
.
isSecurity
())
{
if
(
DataSecurityUtil
.
needDecrypt
(
noUiRequest
.
getReqUrl
()))
{
if
(
DataSecurityUtil
.
needDecrypt
(
noUiRequest
.
getReqUrl
()))
{
String
[]
clientpars
=
DataSecurityUtil
.
getSafeConfigByReqUrl
(
context
,
noUiRequest
,
noUiRequest
.
getReqUrl
()
+
DataSecurityUtil
.
DECRYPT_FIX
);
String
[]
clientpars
=
DataSecurityUtil
.
getSafeConfigByReqUrl
(
context
,
noUiRequest
,
noUiRequest
.
getReqUrl
()
+
DataSecurityUtil
.
DECRYPT_FIX
);
if
(!
ArrayUtils
.
isEmpty
(
clientpars
)){
if
(!
ArrayUtils
.
isEmpty
(
clientpars
)){
...
@@ -107,6 +106,18 @@ public abstract class AbstractCommonController {
...
@@ -107,6 +106,18 @@ public abstract class AbstractCommonController {
}
}
}
}
}
}
}
else
if
(
"infsmh"
.
equals
(
trnName
)
&&
"_recpan_show"
.
equals
(
alias
.
getAliasActionUrl
())){
String
res
=
request
.
getHeader
(
"res"
);
String
docpth
=
(
String
)
paramsMap
.
get
(
"docpth"
);
String
errmsg
=
"Access Forbidden, Unauthorized!!!"
;
if
(
res
==
null
||
docpth
==
null
){
Result
rt
=
new
Result
(
ErrorCodes
.
ERROR
,
errmsg
,
null
,
noUiVersion
.
getVersion
());
return
rt
;
}
if
(!
res
.
equals
(
docpth
)){
Result
rt
=
new
Result
(
ErrorCodes
.
ERROR
,
errmsg
,
null
,
noUiVersion
.
getVersion
());
return
rt
;
}
}
}
}
}
...
...
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