From e3d7936517dc61982b16c790b133c78580084313 Mon Sep 17 00:00:00 2001 From: Mark Unwin Date: Thu, 21 Nov 2024 13:47:26 +1000 Subject: [PATCH] Fix widget link escaping for hard and software changes per day on the dashboards template. --- app/Views/dashboardsExecute.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/Views/dashboardsExecute.php b/app/Views/dashboardsExecute.php index bfdb7dc2c..4bfde4ee8 100644 --- a/app/Views/dashboardsExecute.php +++ b/app/Views/dashboardsExecute.php @@ -316,6 +316,7 @@ foreach ($included['widgets'] as $widget) { if (!empty($widget->formatted) and !empty($widget->type) and $widget->type !== 'traffic') { $wf = json_encode($widget->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"; }