From 99ae371eeb2e8b879cf84fba0a33f89d272bb4f1 Mon Sep 17 00:00:00 2001 From: Mathieu Bruyen Date: Tue, 7 Jun 2022 08:02:13 +0200 Subject: [PATCH] bugfix: escape object name in chart xml --- src/gen-charts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gen-charts.ts b/src/gen-charts.ts index e7238d0ac..7eacde15f 100644 --- a/src/gen-charts.ts +++ b/src/gen-charts.ts @@ -1269,7 +1269,7 @@ function makeChartType(chartType: CHART_NAME, data: OptsChartData[], opts: IChar strXml += ' ' strXml += ' ' strXml += ' Sheet1!$' + LETTERS[idxColLtr] + '$1' - strXml += ' ' + obj.name + '' + strXml += ' ' + encodeXmlEntities(obj.name) + '' strXml += ' ' strXml += ' '