aboutsummaryrefslogtreecommitdiffstats
path: root/include/network.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-13 16:21:02 -0700
committerfriendica <info@friendica.com>2014-10-13 16:21:02 -0700
commit3d56bb5cd72e2ca6d07fa4b79c4049b7c339af86 (patch)
treeeca576bd3040534d7803809f5b969e9262ae248f /include/network.php
parentb740baf6a91e79505cffe0dfa365744c304f5190 (diff)
downloadvolse-hubzilla-3d56bb5cd72e2ca6d07fa4b79c4049b7c339af86.tar.gz
volse-hubzilla-3d56bb5cd72e2ca6d07fa4b79c4049b7c339af86.tar.bz2
volse-hubzilla-3d56bb5cd72e2ca6d07fa4b79c4049b7c339af86.zip
this bug has been there for a *long* time. First time I've ever seen it triggered.
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;