apply security patch: release-11.1.13/345-202503050955.patch

commit a9bcef23917cc0c6dbabd44ab1be684d15e38929
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-24 09:49:22 +00:00
parent 351aeb020c
commit 621bd18c41
2 changed files with 2 additions and 1 deletions
@@ -463,7 +463,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,
options: panel.options ?? {},
@@ -110,6 +110,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) {