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:
@@ -246,7 +246,7 @@
|
|||||||
foreach ($fax_email_outbound_authorized_senders as $sender_num => $sender) {
|
foreach ($fax_email_outbound_authorized_senders as $sender_num => $sender) {
|
||||||
if ($sender == '' || !valid_email($sender)) { unset($fax_email_outbound_authorized_senders[$sender_num]); }
|
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')) {
|
if ($action == "add" && permission_exists('fax_extension_add')) {
|
||||||
|
|||||||
Reference in New Issue
Block a user