From 4bb8f573eaa54c02bb6dbf74221f93fb8833830c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 17 Feb 2024 16:53:24 +0100 Subject: [PATCH] Fix apstats --- dev/tools/apstats.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dev/tools/apstats.php b/dev/tools/apstats.php index 8c52fca2539..ae362af2475 100755 --- a/dev/tools/apstats.php +++ b/dev/tools/apstats.php @@ -700,12 +700,13 @@ if (count($output_phan_json) != 0) { } else { $tmp = ''; } - $tmp .= "$path"; + $tmp .= ''.$path.''; $tmp .= ''; - $tmp .= "{$line_range_txt}"; + $tmp .= ''.$line_range_txt.''; $tmp .= ''; - $tmp .= "$description"; + $tmp .= ''.$description.''; $tmp .= ''; + $phan_items[] = $tmp; $phan_nblines++; } @@ -721,7 +722,7 @@ $html .= '

Last security iss $html .= '
'."\n"; $html .= '
'."\n"; $html .= ''."\n"; -$html .= ''."\n"; +$html .= ''."\n"; foreach ($arrayofalerts as $alert) { $html .= ''; $html .= ''; $html .= ''; + $html .= ''; $html .= ''; - $html .= ''; $html .= ''; } $html .= '
Commit IDReported on
Yogosha
Reported on
GIT
Reported on
CVE
TitleDate
Commit IDDateReported on
Yogosha
Reported on
GIT
Reported on
CVE
Title
'; @@ -735,6 +736,9 @@ foreach ($arrayofalerts as $alert) { } $html .= ''; + $html .= preg_replace('/T.*$/', '', $alert['created_at']); + $html .= ''; if (!empty($alert['issueidyogosha'])) { //$html .= ''; $html .= $alert['issueidyogosha']; @@ -757,9 +761,6 @@ foreach ($arrayofalerts as $alert) { } $html .= ''.$alert['title'].''; - $html .= preg_replace('/T.*$/', '', $alert['created_at']); - $html .= '
';