mirror of
https://github.com/dataease/dataease.git
synced 2026-06-17 04:51:43 +08:00
fix(X-Pack): 定时报告-导出 Excel安全漏洞
This commit is contained in:
committed by
fit2cloud-chenyw
parent
c221265724
commit
9b1438a725
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user