aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorhabeascodice <habeascodice@federated.social>2014-10-15 17:26:07 -0700
committerhabeascodice <habeascodice@federated.social>2014-10-15 17:26:07 -0700
commitcf58122b29b7576a27b0f0561d90b87d9a0623dd (patch)
treecb06b26e88a61c43dc430417b5957cd4dd331501 /include/network.php
parent0c5408e22b47880e8e657d4e10f8b39581f2a29a (diff)
parent1eb478ba54206cca53653e7a579aa1a36fb03315 (diff)
downloadvolse-hubzilla-cf58122b29b7576a27b0f0561d90b87d9a0623dd.tar.gz
volse-hubzilla-cf58122b29b7576a27b0f0561d90b87d9a0623dd.tar.bz2
volse-hubzilla-cf58122b29b7576a27b0f0561d90b87d9a0623dd.zip
Merge remote branch 'upstream/master'
Diffstat (limited to 'include/network.php')
-rw-r--r--include/network.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/network.php b/include/network.php
index 7286f0b12..25ed615c6 100644
--- a/include/network.php
+++ b/include/network.php
@@ -402,7 +402,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;