上传bug修改

This commit is contained in:
guoshengxiong 2025-09-30 18:02:55 +08:00
parent ff4d31c0e2
commit f69964d66d

View File

@ -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("<%") ||