Skip to content

Commit

Permalink
Fix. Vulnerability alarm. Sending report to the cloud format fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Nov 1, 2024
1 parent 44c94a9 commit dcde050
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -438,10 +438,7 @@ public static function sendReport()

// 3) Send found vulnerable IDs
if ( count($vulnerabilities) > 0 ) {
// @ToDo make only one API request after it will be able to receive array of IDs as the input parameter https://doboard.com/1/task/11753
foreach ( $vulnerabilities as $research_id ) {
$_send_result = API::methodReportVulnerabilityInUse($spbc->settings['spbc_key'], $spbc->data['service_id'], $research_id);
}
$_send_result = API::methodReportVulnerabilityInUse($spbc->settings['spbc_key'], $spbc->data['service_id'], $vulnerabilities);
}
}
}

0 comments on commit dcde050

Please sign in to comment.