Fix bad verification for unwanted mail send (#29410)

Co-authored-by: Hystepik <lmarcouiller@nltechno.com>
This commit is contained in:
Lucas Marcouiller 2024-04-20 23:20:36 +02:00 committed by GitHub
parent 582264ec2c
commit 83a057fe25
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -398,7 +398,7 @@ class CMailFile
$replacecc = false;
$tabcc = explode(',', $addr_cc);
foreach ($tabcc as $key => $cc) {
if (in_array($cc, $tabcc)) {
if (in_array($cc, $listofemailstonotsendto)) {
unset($tabcc[$key]);
$replacecc = true;
}
@ -412,7 +412,7 @@ class CMailFile
$replacebcc = false;
$tabbcc = explode(',', $addr_bcc);
foreach ($tabbcc as $key => $bcc) {
if (in_array($bcc, $tabbcc)) {
if (in_array($bcc, $listofemailstonotsendto)) {
unset($tabbcc[$key]);
$replacebcc = true;
}