From: Evan Prodromou Date: Thu, 21 Apr 2011 14:51:58 +0000 (-0400) Subject: be more tolerant of whitespace in email addresses X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c475e58e642f5c3b28964a5dee2ba03a06e34d62;p=quix0rs-gnu-social.git be more tolerant of whitespace in email addresses --- diff --git a/plugins/DomainWhitelist/DomainWhitelistPlugin.php b/plugins/DomainWhitelist/DomainWhitelistPlugin.php index 8fab835991..bb63f666a1 100644 --- a/plugins/DomainWhitelist/DomainWhitelistPlugin.php +++ b/plugins/DomainWhitelist/DomainWhitelistPlugin.php @@ -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); }