From c475e58e642f5c3b28964a5dee2ba03a06e34d62 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Thu, 21 Apr 2011 10:51:58 -0400 Subject: [PATCH] be more tolerant of whitespace in email addresses --- plugins/DomainWhitelist/DomainWhitelistPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5