mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-09-08 07:18:03 +00:00
解决SQL注入检测逻辑影响业务 #6105
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user