RuoYi
2022-09-18 bc8849c1d80f5a8c5b8d20425aee0538350623ae
src/main/java/com/ruoyi/common/utils/sql/SqlUtil.java
@@ -50,9 +50,9 @@
            return;
        }
        String[] sqlKeywords = StringUtils.split(SQL_REGEX, "\\|");
        for (int i = 0; i < sqlKeywords.length; i++)
        for (String sqlKeyword : sqlKeywords)
        {
            if (StringUtils.indexOfIgnoreCase(value, sqlKeywords[i]) > -1)
            if (StringUtils.indexOfIgnoreCase(value, sqlKeyword) > -1)
            {
                throw new UtilException("参数存在SQL注入风险");
            }