Match mixed case in "from" address (#4619)

RFC's do not specify addresses must be converted lower case by email servers. If a sender has set their "from" address set to a mixed case string, the fax send will not match the authorized senders. This ensures newly entered authorized senders are now stored as lower case.
This commit is contained in:
frytimo
2019-09-17 14:38:59 -04:00
committed by FusionPBX
parent 89a1e807c4
commit 7ecf092dd6

View File

@@ -246,7 +246,7 @@
foreach ($fax_email_outbound_authorized_senders as $sender_num => $sender) {
if ($sender == '' || !valid_email($sender)) { unset($fax_email_outbound_authorized_senders[$sender_num]); }
}
$fax_email_outbound_authorized_senders = implode(',', $fax_email_outbound_authorized_senders);
$fax_email_outbound_authorized_senders = strtolower(implode(',', $fax_email_outbound_authorized_senders));
}
if ($action == "add" && permission_exists('fax_extension_add')) {