mirror of
https://github.com/elyby/php-tempmailbuster.git
synced 2024-11-09 15:02:04 +05:30
Strict comparison
This commit is contained in:
parent
e78a2ccd84
commit
9939ee72b2
@ -51,7 +51,7 @@ class TempMailBuster
|
|||||||
|
|
||||||
$blacklistRegex = $this->buildRegex($blacklist->getItems());
|
$blacklistRegex = $this->buildRegex($blacklist->getItems());
|
||||||
$match = !!preg_match($blacklistRegex, $domain);
|
$match = !!preg_match($blacklistRegex, $domain);
|
||||||
if ($match == $this->isWhitelistMode) {
|
if ($match === $this->isWhitelistMode) {
|
||||||
return !$this->isWhitelistMode;
|
return !$this->isWhitelistMode;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user