mirror of
https://github.com/dataease/dataease.git
synced 2026-06-17 04:51:43 +08:00
fix: 修复 DataVisualizationServer ReDoS 漏洞,replaceAll 改为 replace
This commit is contained in:
@@ -926,7 +926,7 @@ public class DataVisualizationServer implements DataVisualizationApi {
|
||||
String componentData = newDv.getComponentData();
|
||||
// componentData viewId 数据 并保存
|
||||
for (CoreChartView viewInfo : viewList) {
|
||||
componentData = componentData.replaceAll(String.valueOf(viewInfo.getCopyFrom()), String.valueOf(viewInfo.getId()));
|
||||
componentData = componentData.replace(String.valueOf(viewInfo.getCopyFrom()), String.valueOf(viewInfo.getId()));
|
||||
}
|
||||
newDv.setComponentData(componentData);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user