Permalink
Browse files

Force email domain lookups to work in fallback case.

  • Loading branch information...
milan-corpoflow committed Oct 25, 2017
1 parent 509cd6f commit 7de5ae44385bd39eacb4d096722ead1647798a0a
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Utility/Validation.php
@@ -478,7 +478,7 @@ public static function email($check, $deep = false, $regex = null) {
if (function_exists('checkdnsrr') && checkdnsrr($regs[1], 'MX')) {
return true;
}
return is_array(gethostbynamel($regs[1]));
return is_array(gethostbynamel($regs[1] . '.'));
}
return false;
}

0 comments on commit 7de5ae4

Please sign in to comment.