From 607fa564493a1c8b68d49542f865d2dc49471669 Mon Sep 17 00:00:00 2001 From: Zach Copley Date: Wed, 11 May 2011 16:19:51 -0700 Subject: [PATCH] Don't add the user's domain to invitee domains unless it's on the whitelist --- plugins/DomainWhitelist/DomainWhitelistPlugin.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/DomainWhitelist/DomainWhitelistPlugin.php b/plugins/DomainWhitelist/DomainWhitelistPlugin.php index 9e1b31ef34..cf0d94884d 100644 --- a/plugins/DomainWhitelist/DomainWhitelistPlugin.php +++ b/plugins/DomainWhitelist/DomainWhitelistPlugin.php @@ -231,8 +231,9 @@ class DomainWhitelistPlugin extends Plugin ) ); - array_unshift($orderedWhitelist, $userDomain); - + if (in_array($userDomain, $whitelist)) { + array_unshift($orderedWhitelist, $userDomain); + } return $orderedWhitelist; } -- 2.39.5