Merge pull request #11371 from Milanzor/2.x

Force email domain lookups to work in fallback case.
This commit is contained in:
Mark Story 2017-10-25 18:34:33 -04:00 committed by GitHub
commit 65373736a3

View file

@ -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;
} }