修复文件劫持、注入、阻断页面、镜像若干bug
This commit is contained in:
@@ -459,7 +459,9 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
List<ProxyObjKeyring> convertList = Lists.newArrayList();
|
||||
for (Object object : auditList) {
|
||||
PxyObjKeyring cfg = (PxyObjKeyring)object;
|
||||
convertList.add(BaseService.convertCallBackProxyObjKeyring(cfg));
|
||||
if(!"1".equals(cfg.getUserRegion4())){
|
||||
convertList.add(BaseService.convertCallBackProxyObjKeyring(cfg));
|
||||
}
|
||||
}
|
||||
if(convertList.size() > 0) {
|
||||
auditList = convertList;
|
||||
@@ -482,16 +484,20 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
List<ProxyFileHijackCfgAudit> convertList = Lists.newArrayList();
|
||||
for (Object object : auditList) {
|
||||
ProxyFileHijackCfg cfg = (ProxyFileHijackCfg)object;
|
||||
convertList.add(BaseService.convertCallBackProxyFileHijack(cfg));
|
||||
if(!"1".equals(cfg.getQuote())){
|
||||
convertList.add(BaseService.convertCallBackProxyFileHijack(cfg));
|
||||
}
|
||||
}
|
||||
if(convertList.size() > 0) {
|
||||
auditList = convertList;
|
||||
}
|
||||
}else if(entity.getServiceId().equals(644)) { // 劫持文件
|
||||
}else if(entity.getServiceId().equals(644)) { // 脚本注入
|
||||
List<ProxyFileInsertScriptCfgAudit> convertList = Lists.newArrayList();
|
||||
for (Object object : auditList) {
|
||||
ProxyFileInsertScriptCfg cfg = (ProxyFileInsertScriptCfg)object;
|
||||
convertList.add(BaseService.convertCallBackProxyFileInsertScript(cfg));
|
||||
if(!"1".equals(cfg.getQuote())){
|
||||
convertList.add(BaseService.convertCallBackProxyFileInsertScript(cfg));
|
||||
}
|
||||
}
|
||||
if(convertList.size() > 0) {
|
||||
auditList = convertList;
|
||||
@@ -500,7 +506,9 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
List<ProxyFileTrafficMirrorCfgAudit> convertList = Lists.newArrayList();
|
||||
for (Object object : auditList) {
|
||||
ProxyFileTrafficMirrorCfg cfg = (ProxyFileTrafficMirrorCfg)object;
|
||||
convertList.add(BaseService.convertCallBackProxyFileTrafficMirror(cfg));
|
||||
if(!"1".equals(cfg.getUserRegion5())){
|
||||
convertList.add(BaseService.convertCallBackProxyFileTrafficMirror(cfg));
|
||||
}
|
||||
}
|
||||
if(convertList.size() > 0) {
|
||||
auditList = convertList;
|
||||
@@ -518,7 +526,9 @@ public class CommonPolicyService extends CrudService<WebsiteCfgDao, CfgIndexInfo
|
||||
List<ProxyFileResponsePageCfgAudit> convertList = Lists.newArrayList();
|
||||
for (Object object : auditList) {
|
||||
ProxyFileResponsePageCfg cfg = (ProxyFileResponsePageCfg)object;
|
||||
convertList.add(BaseService.convertCallBackProxyFileResponsePage(cfg));
|
||||
if(!"1".equals(cfg.getQuote())){
|
||||
convertList.add(BaseService.convertCallBackProxyFileResponsePage(cfg));
|
||||
}
|
||||
}
|
||||
if(convertList.size() > 0) {
|
||||
auditList = convertList;
|
||||
|
||||
Reference in New Issue
Block a user