Merge branch 'uat' into dunhuang
This commit is contained in:
commit
5d3516837f
@ -114,8 +114,8 @@ public class FileSecurityUtil {
|
||||
|
||||
private boolean containsSuspiciousContent(MultipartFile file) throws IOException {
|
||||
// 检查是否包含可执行文件特征(简单示例)
|
||||
byte[] content = file.getBytes();
|
||||
String contentStr = new String(content).toLowerCase();
|
||||
// byte[] content = file.getBytes();
|
||||
// String contentStr = new String(content).toLowerCase();
|
||||
|
||||
// return contentStr.contains("<?php") ||
|
||||
// contentStr.contains("<%") ||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user