fix: 修复任意文件上传漏洞
This commit is contained in:
parent
c8bdeaaf12
commit
6b68ace139
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user