mirror of
https://github.com/egulias/EmailValidator.git
synced 2026-09-02 13:41:55 +00:00
Change DNS validation to default to true instead of false
There shouldn't be a dependency on the checkDNS() method in order to validate strict = true. We should only be concerned about the DNS if the library is specifically told to check DNS, so we default the DNS variable to true and then set it to false if checkDNS is set to true and checkDNS() returns false.
This commit is contained in:
@@ -86,7 +86,7 @@ class EmailValidator
|
||||
return false;
|
||||
}
|
||||
|
||||
$dns = false;
|
||||
$dns = true;
|
||||
if ($checkDNS) {
|
||||
$dns = $this->checkDNS();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user