mirror of https://github.com/jeecgboot/jeecg-boot
解决SQL注入检测逻辑影响业务 #6105
parent
13d00a8bb4
commit
4dc4e87900
|
@ -84,7 +84,8 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
|
|||
|
||||
// 2.SQL注入check(只限制非法串改数据库)
|
||||
//关联表字典(举例:sys_user,realname,id)
|
||||
SqlInjectionUtil.filterContent(table, fieldName);
|
||||
SqlInjectionUtil.filterContent(table);
|
||||
SqlInjectionUtil.filterContent(fieldName);
|
||||
|
||||
String checkSql = table + SymbolConstant.COMMA + fieldName + SymbolConstant.COMMA;
|
||||
// 【QQYUN-6533】表字典白名单check
|
||||
|
@ -268,7 +269,8 @@ public class SysDictServiceImpl extends ServiceImpl<SysDictMapper, SysDict> impl
|
|||
|
||||
// 1.SQL注入校验(只限制非法串改数据库)
|
||||
SqlInjectionUtil.specialFilterContentForDictSql(table);
|
||||
SqlInjectionUtil.filterContent(text, code);
|
||||
SqlInjectionUtil.filterContent(text);
|
||||
SqlInjectionUtil.filterContent(code);
|
||||
SqlInjectionUtil.specialFilterContentForDictSql(filterSql);
|
||||
|
||||
String str = table+","+text+","+code;
|
||||
|
|
Loading…
Reference in New Issue