EmailValidator/Validation/DNSCheckValidation.php 1 location
|
@@ 35-37 (lines=3) @@
|
32 |
|
$host = $email; |
33 |
|
|
34 |
|
// Arguable pattern to extract the domain. Not aiming to validate the domain nor the email |
35 |
|
if (false !== $lastAtPos = strrpos($email, '@')) { |
36 |
|
$host = substr($email, $lastAtPos + 1); |
37 |
|
} |
38 |
|
|
39 |
|
return $this->checkDNS($host); |
40 |
|
} |
EmailValidator/Validation/NonLocalValidation.php 1 location
|
@@ 22-24 (lines=3) @@
|
19 |
|
$host = $email; |
20 |
|
|
21 |
|
// Arguable pattern to extract the domain. Not aiming to validate the domain nor the email |
22 |
|
if (false !== $lastAtPos = strrpos($email, '@')) { |
23 |
|
$host = substr($email, $lastAtPos + 1); |
24 |
|
} |
25 |
|
|
26 |
|
if (false === strpos($host, '.')) { |
27 |
|
$this->error = new LocalEmail(); |