apply security patch: release-11.5.3/341-202503050903.patch
commit 0d4c8798648fa2a008f6f51dabe85d37ef5ff00c Author: oscarkilhed <oscar.kilhed@grafana.com> Date: Fri Feb 28 16:32:58 2025 +0100 Limit number of characters in the title
This commit is contained in:
@@ -307,7 +307,7 @@ export function buildGridItemForPanel(panel: PanelModel): DashboardGridItem {
|
||||
|
||||
const vizPanelState: VizPanelState = {
|
||||
key: getVizPanelKeyForPanelId(panel.id),
|
||||
title: panel.title,
|
||||
title: panel.title?.substring(0, 5000),
|
||||
description: panel.description,
|
||||
pluginId: panel.type ?? 'timeseries',
|
||||
options: panel.options ?? {},
|
||||
|
||||
@@ -111,6 +111,7 @@ export class DashboardGrid extends PureComponent<Props, State> {
|
||||
if (!panel.key) {
|
||||
panel.key = `panel-${panel.id}-${Date.now()}`;
|
||||
}
|
||||
panel.title = panel.title?.substring(0, 5000);
|
||||
this.panelMap[panel.key] = panel;
|
||||
|
||||
if (!panel.gridPos) {
|
||||
|
||||
Reference in New Issue
Block a user