Fax Server: Add ability to authorize domains for Email-to-Fax.
This commit is contained in:
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user