diff --git a/boot.php b/boot.php index 7dd188ee71..4c3a923dce 100644 --- a/boot.php +++ b/boot.php @@ -1825,7 +1825,7 @@ function allowed_email($email) { if(count($allowed)) { foreach($allowed as $a) { $pat = strtolower(trim($a)); - if(($fnmatch && fnmatch($pat,$host)) || ($pat == $host)) { + if(($fnmatch && fnmatch($pat,$domain)) || ($pat == $domain)) { $found = true; break; }