allowed_email matching $host instead of $domain
authorFriendika <info@friendika.com>
Thu, 10 Mar 2011 07:35:47 +0000 (23:35 -0800)
committerFriendika <info@friendika.com>
Thu, 10 Mar 2011 07:35:47 +0000 (23:35 -0800)
boot.php

index 7dd188ee715129be2bc80f2db1981e4d831f29ad..4c3a923dcea2e52644dea55e826aface43047192 100644 (file)
--- 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;
                        }