Skip to content

Commit

Permalink
[BUGFIX] #226 htmlspecialchars should not be used on int field.
Browse files Browse the repository at this point in the history
  • Loading branch information
Joey Bouten committed Oct 9, 2023
1 parent 153e5be commit 746ebc2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/FormEngine/DownloadStatistics.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ public function render(): array
$markup[] = '<table class="table table-bordered">';
$markup[] = '<thead><tr><th>' . htmlspecialchars($titleFileName) . '</th><th>' . htmlspecialchars($titleDownloads) . '</th></tr></thead>';
$markup[] = '<tbody>';

foreach ($statistics as $file) {
$markup[] = '<tr><td>' . htmlspecialchars($file['name']) . '</td><td>' . htmlspecialchars($file['cnt']) . '</td></tr>';
$markup[] = '<tr><td>' . htmlspecialchars($file['name']) . '</td><td>' . $file['cnt'] . '</td></tr>';
}
$markup[] = '</tbody>';
$markup[] = '</table>';
Expand Down

0 comments on commit 746ebc2

Please sign in to comment.