Skip to content

Commit

Permalink
3.7.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lbr38 committed Oct 17, 2023
1 parent 1912cd5 commit ae71aca
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion www/controllers/Cve/Cve.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ public function sendMailWithAffectedHosts()

if (!empty($mailMessage)) {
$mailSubject = 'CVEs affected hosts summary';
$mymail = new \Controllers\Mail(EMAIL_RECIPIENT, $mailSubject, $mailMessage, '', '');
$mymail = new \Controllers\Mail(implode(',', EMAIL_RECIPIENT), $mailSubject, $mailMessage, '', '');
}
}
}
3 changes: 2 additions & 1 deletion www/controllers/Mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ public function __construct(string $to, string $subject, string $content, string

$mail->send();
} catch (Exception $e) {
echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
// echo "Message could not be sent. Mailer Error: {$mail->ErrorInfo}";
throw new Exception('Error: mail could not be sent. Mailer Error: ' . $mail->ErrorInfo);
}
}
}
2 changes: 1 addition & 1 deletion www/controllers/ajax/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
if ($action == "sendTestEmail") {
try {
$mymail = new \Controllers\Mail(EMAIL_RECIPIENT, 'Test email', 'This is a test email sent by Repomanager.');
$mymail = new \Controllers\Mail(implode(',', EMAIL_RECIPIENT), 'Test email', 'This is a test email sent by Repomanager.');
} catch (Exception $e) {
response(HTTP_BAD_REQUEST, $e->getMessage());
}
Expand Down
2 changes: 1 addition & 1 deletion www/public/resources/styles/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ article {

.repos-list-group-flex-div {
display: grid;
grid-template-columns: 250px 50px auto auto auto 85px 1fr;
grid-template-columns: 300px 50px auto auto auto 60px 1fr;
margin-bottom: 12px;
background-color: #1d3349;
border: 1px solid #24405c;
Expand Down
2 changes: 1 addition & 1 deletion www/views/includes/panels/new-repo.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
<optgroup label="Debian">
<option value="buster">buster (Debian 10)</option>
<option value="bullseye">bullseye (Debian 11)</option>
<option value="bullseye">bookworm (Debian 12)</option>
<option value="bookworm">bookworm (Debian 12)</option>
</optgroup>
<optgroup label="Ubuntu">
<option value="focal">focal (Ubuntu 20.04)</option>
Expand Down

0 comments on commit ae71aca

Please sign in to comment.