Merge pull request #4879 from dataease/pr@dev@fix_msg_api

perf(消息api): 排序字段报错
This commit is contained in:
fit2cloud-chenyw 2023-03-24 14:40:53 +08:00 committed by GitHub
commit a78044ed5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,7 @@ import io.dataease.auth.annotation.SqlInjectValidator;
import io.dataease.commons.exception.DEException;
import io.dataease.controller.sys.base.BaseGridRequest;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.StringUtils;
import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.Signature;
import org.aspectj.lang.annotation.Around;
@ -63,6 +64,6 @@ public class SqlInjectAop {
return orderList.stream().anyMatch(exp ->
Arrays.stream(exp.toLowerCase().split(",")).anyMatch(word ->
Arrays.stream(word.split(" ")).anyMatch(item ->
!wordList.contains(item))));
StringUtils.isNotBlank(item.trim()) && !wordList.contains(item.trim()))));
}
}