apply security patch: release-11.3.5/342-202503050951.patch

commit dfa73676c9bfc9adadbffd17299a1e858143017c
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:
github-actions[bot]
2025-03-25 19:58:58 +00:00
parent 1d6c12055f
commit f8d4c9fc43
2 changed files with 2 additions and 1 deletions
@@ -295,7 +295,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) {