fix: 修复任意文件上传漏洞

This commit is contained in:
taojinlong 2024-03-05 10:42:44 +08:00
parent c8bdeaaf12
commit 6b68ace139

View File

@ -65,7 +65,7 @@ public class PluginService {
}
private void checkFileName(String fileName){
if(StringUtils.isEmpty(fileName) || !fileName.endsWith(".jar") || fileName.contains("../")){
if(StringUtils.isEmpty(fileName) || !fileName.endsWith(".zip") || fileName.contains("../")){
DataEaseException.throwException("非法的文件名: " + fileName);
}
}