From 7ecf092dd6bd79a884eabcba0dd9998bfa80d126 Mon Sep 17 00:00:00 2001 From: frytimo Date: Tue, 17 Sep 2019 14:38:59 -0400 Subject: [PATCH] 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. --- app/fax/fax_edit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/fax/fax_edit.php b/app/fax/fax_edit.php index 67b6d62b5f..f21c48eac6 100644 --- a/app/fax/fax_edit.php +++ b/app/fax/fax_edit.php @@ -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')) {