mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Force email domain lookups to work in fallback case.
This commit is contained in:
parent
509cd6f7c2
commit
7de5ae4438
1 changed files with 1 additions and 1 deletions
|
@ -478,7 +478,7 @@ class Validation {
|
||||||
if (function_exists('checkdnsrr') && checkdnsrr($regs[1], 'MX')) {
|
if (function_exists('checkdnsrr') && checkdnsrr($regs[1], 'MX')) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return is_array(gethostbynamel($regs[1]));
|
return is_array(gethostbynamel($regs[1] . '.'));
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue