From: Zach Copley Date: Wed, 11 May 2011 23:19:51 +0000 (-0700) Subject: Don't add the user's domain to invitee domains unless it's on the whitelist X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=607fa564493a1c8b68d49542f865d2dc49471669;p=quix0rs-gnu-social.git Don't add the user's domain to invitee domains unless it's on the whitelist --- 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; }