Skip to content

Commit

Permalink
Fix widget link escaping for hard and software changes per day on the…
Browse files Browse the repository at this point in the history
… dashboards template.
  • Loading branch information
mark-unwin committed Nov 21, 2024
1 parent d7abef0 commit e3d7936
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Views/dashboardsExecute.php
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}
Expand Down

0 comments on commit e3d7936

Please sign in to comment.