From: Johannes Schwab Date: Mon, 23 Feb 2015 11:20:05 +0000 (+0100) Subject: fix validate_email X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1cd1f7587c8dadc9368e0089613d75988d7e3d53;p=friendica.git fix validate_email --- 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;