From 1cd1f7587c8dadc9368e0089613d75988d7e3d53 Mon Sep 17 00:00:00 2001 From: Johannes Schwab Date: Mon, 23 Feb 2015 12:20:05 +0100 Subject: [PATCH] fix validate_email --- include/network.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/network.php b/include/network.php index 190dce326e..1fa7486b0a 100644 --- a/include/network.php +++ b/include/network.php @@ -651,7 +651,7 @@ function validate_email($addr) { return false; $h = substr($addr,strpos($addr,'@') + 1); - if(($h) && (dns_get_record($h, DNS_A + DNS_CNAME + DNS_PTR + DNS_MX) || filter_var($h['host'], FILTER_VALIDATE_IP) )) { + if(($h) && (dns_get_record($h, DNS_A + DNS_CNAME + DNS_PTR + DNS_MX) || filter_var($h, FILTER_VALIDATE_IP) )) { return true; } return false;