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
… widgets execute template.
  • Loading branch information
mark-unwin committed Nov 21, 2024
1 parent e3d7936 commit 7dc7e99
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/Views/widgetsExecute.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@
<?php
if (!empty($data->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";
} ?>
Expand Down

0 comments on commit 7dc7e99

Please sign in to comment.