]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
be more tolerant of whitespace in email addresses
authorEvan Prodromou <evan@status.net>
Thu, 21 Apr 2011 14:51:58 +0000 (10:51 -0400)
committerEvan Prodromou <evan@status.net>
Thu, 21 Apr 2011 14:51:58 +0000 (10:51 -0400)
plugins/DomainWhitelist/DomainWhitelistPlugin.php

index 8fab835991bccd91f1b13f18894a133dc79288fe..bb63f666a15c90e7f288b9421be2b48d244abe33 100644 (file)
@@ -104,7 +104,7 @@ class DomainWhitelistPlugin extends Plugin
 
         $parts = explode('@', $email);
 
-        $userDomain = strtolower($parts[1]);
+        $userDomain = strtolower(trim($parts[1]));
 
         return in_array($userDomain, $whitelist);
     }