be more tolerant of whitespace in email addresses

This commit is contained in:
Evan Prodromou 2011-04-21 10:51:58 -04:00
parent 10cffa8afa
commit c475e58e64

View File

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