Fax Server: Add ability to authorize domains for Email-to-Fax.

This commit is contained in:
fusionate
2020-12-02 12:20:10 -07:00
parent ae3ade1714
commit 0dc478ac00
3 changed files with 8 additions and 6 deletions
+3 -1
View File
@@ -278,7 +278,9 @@
//prep authorized senders
if (sizeof($fax_email_outbound_authorized_senders) > 0) {
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 == '' || (substr_count($sender, '@') == 1 && !valid_email($sender)) || substr_count($sender, '.') == 0) {
unset($fax_email_outbound_authorized_senders[$sender_num]);
}
}
$fax_email_outbound_authorized_senders = strtolower(implode(',', $fax_email_outbound_authorized_senders));
}