Force email domain lookups to work in fallback case.

This commit is contained in:
Milan van As 2017-10-25 08:45:57 +02:00
parent 509cd6f7c2
commit 7de5ae4438

View file

@ -478,7 +478,7 @@ class Validation {
if (function_exists('checkdnsrr') && checkdnsrr($regs[1], 'MX')) {
return true;
}
return is_array(gethostbynamel($regs[1]));
return is_array(gethostbynamel($regs[1] . '.'));
}
return false;
}