From 7dc7e998993aad1633052a56a94b572c14555cd0 Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Thu, 21 Nov 2024 13:49:22 +1000 Subject: [PATCH] Fix widget link escaping for hard and software changes per day on the widgets execute template. --- app/Views/widgetsExecute.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Views/widgetsExecute.php b/app/Views/widgetsExecute.php index a8532d29a..af5e9a92f 100644 --- a/app/Views/widgetsExecute.php +++ b/app/Views/widgetsExecute.php @@ -132,6 +132,7 @@ formatted)) { $wf = json_encode($data->formatted); + $wf = htmlspecialchars_decode($wf, ENT_QUOTES); $wf = str_replace('"function(event){location.href = this.options.url;}"', 'function(event){location.href = this.options.url;}', $wf); echo "\n\tHighcharts.chart(" . html_entity_decode($wf) . ");\n"; } ?>