Commit 472bf3f3 by zhangdaiscott

JeecgBoot 3.1.0 版本发布,基于代码生成器的企业级低代码平台

parent b66fff6c
...@@ -76,7 +76,7 @@ public class CommonController { ...@@ -76,7 +76,7 @@ public class CommonController {
String bizPath = request.getParameter("biz"); String bizPath = request.getParameter("biz");
//LOWCOD-2580 sys/common/upload接口存在任意文件上传漏洞 //LOWCOD-2580 sys/common/upload接口存在任意文件上传漏洞
if(bizPath.contains("../") || bizPath.contains("..\\")){ if (oConvertUtils.isNotEmpty(bizPath) && (bizPath.contains("../") || bizPath.contains("..\\"))) {
throw new JeecgBootException("上传目录bizPath,格式非法!"); throw new JeecgBootException("上传目录bizPath,格式非法!");
} }
......
...@@ -37,7 +37,7 @@ public class SysUploadController { ...@@ -37,7 +37,7 @@ public class SysUploadController {
String bizPath = request.getParameter("biz"); String bizPath = request.getParameter("biz");
//LOWCOD-2580 sys/common/upload接口存在任意文件上传漏洞 //LOWCOD-2580 sys/common/upload接口存在任意文件上传漏洞
if(bizPath.contains("../") || bizPath.contains("..\\")){ if (oConvertUtils.isNotEmpty(bizPath) && (bizPath.contains("../") || bizPath.contains("..\\"))) {
throw new JeecgBootException("上传目录bizPath,格式非法!"); throw new JeecgBootException("上传目录bizPath,格式非法!");
} }
......
...@@ -28,7 +28,7 @@ spring: ...@@ -28,7 +28,7 @@ spring:
props: props:
strategy: standard strategy: standard
# 自定义标准分配算法 # 自定义标准分配算法
algorithmClassName: org.jeecg.modules.demo.sharding.algorithm.StandardModTableShardAlgorithm algorithmClassName: org.jeecg.modules.test.sharding.algorithm.StandardModTableShardAlgorithm
type: CLASS_BASED type: CLASS_BASED
tables: tables:
# 逻辑表名称 # 逻辑表名称
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment