From 7de5ae44385bd39eacb4d096722ead1647798a0a Mon Sep 17 00:00:00 2001 From: Milan van As Date: Wed, 25 Oct 2017 08:45:57 +0200 Subject: [PATCH] Force email domain lookups to work in fallback case. --- lib/Cake/Utility/Validation.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Cake/Utility/Validation.php b/lib/Cake/Utility/Validation.php index f7d27cc9f..95a960ce0 100644 --- a/lib/Cake/Utility/Validation.php +++ b/lib/Cake/Utility/Validation.php @@ -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; }