From 746ebc2d66bf77de22693e9ae6efbff93baf92a9 Mon Sep 17 00:00:00 2001 From: Joey Bouten Date: Mon, 9 Oct 2023 13:59:57 +0200 Subject: [PATCH] [BUGFIX] #226 htmlspecialchars should not be used on int field. --- Classes/FormEngine/DownloadStatistics.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Classes/FormEngine/DownloadStatistics.php b/Classes/FormEngine/DownloadStatistics.php index ce28f6a..fd82622 100644 --- a/Classes/FormEngine/DownloadStatistics.php +++ b/Classes/FormEngine/DownloadStatistics.php @@ -87,8 +87,9 @@ public function render(): array $markup[] = ''; $markup[] = ''; $markup[] = ''; + foreach ($statistics as $file) { - $markup[] = ''; + $markup[] = ''; } $markup[] = ''; $markup[] = '
' . htmlspecialchars($titleFileName) . '' . htmlspecialchars($titleDownloads) . '
' . htmlspecialchars($file['name']) . '' . htmlspecialchars($file['cnt']) . '
' . htmlspecialchars($file['name']) . '' . $file['cnt'] . '
';