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