From 9a685c1f8dc2415a978fc206c2380e2f60da2a1a Mon Sep 17 00:00:00 2001 From: Marcel Naeve Date: Wed, 4 May 2016 03:25:14 +0200 Subject: [PATCH] improved blacklist and whitelist on email validation, now domains can be listed to. --- Validate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Validate.php b/Validate.php index 7afa553..2156d33 100644 --- a/Validate.php +++ b/Validate.php @@ -26,13 +26,13 @@ class Validate // Whitelisted? if(isset($lists['whitelist'])) { - if(in_array($email, $lists['whitelist'])) + if(in_array($email, $lists['whitelist']) || in_array($split[1], $lists['whitelist'])) return true; } // Blacklisted? if(isset($lists['blacklist'])) { - if(in_array($email, $lists['blacklist'])) + if(in_array($email, $lists['blacklist']) || in_array($split[1], $lists['blacklist'])) return false; }