fix(X-Pack): 定时报告-导出 Excel安全漏洞

This commit is contained in:
fit2cloud-chenyw
2026-06-16 15:35:10 +08:00
committed by fit2cloud-chenyw
parent c221265724
commit 9b1438a725

View File

@@ -92,7 +92,7 @@ public class VisualizationExcelUtils {
folderPath += Thread.currentThread().getId() + "/";
FileUtils.validateExist(folderPath);
File result = new File(folderPath + realFileName.get());
File result = new File(folderPath + realFileName.get()).getCanonicalFile();
FileOutputStream fos = new FileOutputStream(result);
BufferedOutputStream outputStream = new BufferedOutputStream(fos);
try {