Browse Source

空值问题处理

pull/5386/head^2
zhangdaiscott 1 year ago
parent
commit
4eaebd658b
  1. 4
      jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SqlInjectionUtil.java

4
jeecg-boot-base-core/src/main/java/org/jeecg/common/util/SqlInjectionUtil.java

@ -101,6 +101,10 @@ public class SqlInjectionUtil {
*/
static final Pattern fieldPattern = Pattern.compile("^[a-zA-Z0-9_]+$");
public static String getSqlInjectField(String field) {
if(oConvertUtils.isEmpty(field)){
return null;
}
field = field.trim();
if (field.contains(SymbolConstant.COMMA)) {

Loading…
Cancel
Save