aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorhabeascodice <habeascodice@federated.social>2014-10-15 17:29:38 -0700
committerhabeascodice <habeascodice@federated.social>2014-10-15 17:29:38 -0700
commit80eb84e843cdca51bbf4ebda180f4de41351b9c4 (patch)
treed6cd7012210477c6e17322b2d19b8a1aad61ca44 /include/network.php
parente4880d07d2aa447425d0b7dc3656e84de08006c0 (diff)
parent1eb478ba54206cca53653e7a579aa1a36fb03315 (diff)
downloadvolse-hubzilla-80eb84e843cdca51bbf4ebda180f4de41351b9c4.tar.gz
volse-hubzilla-80eb84e843cdca51bbf4ebda180f4de41351b9c4.tar.bz2
volse-hubzilla-80eb84e843cdca51bbf4ebda180f4de41351b9c4.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;