diff options
author | friendica <info@friendica.com> | 2015-01-06 14:51:13 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-01-06 14:51:13 -0800 |
commit | 400a2cd91298fe26ede203c032d774bc3cf82d78 (patch) | |
tree | 42be78d86b5f9785f46af45b39269a37e54e2895 | |
parent | aaceb71e863d0677ae8f4a90dd4bf40ed8b2ac9e (diff) | |
parent | 4b9ed48a54313f931e000bf649b890aa34429780 (diff) | |
download | volse-hubzilla-400a2cd91298fe26ede203c032d774bc3cf82d78.tar.gz volse-hubzilla-400a2cd91298fe26ede203c032d774bc3cf82d78.tar.bz2 volse-hubzilla-400a2cd91298fe26ede203c032d774bc3cf82d78.zip |
Merge branch 'master' into trinidad
-rw-r--r-- | include/network.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/network.php b/include/network.php index 98c411cd8..170b77d7d 100644 --- a/include/network.php +++ b/include/network.php @@ -384,7 +384,7 @@ function validate_url(&$url) { $url = 'http://' . $url; $h = @parse_url($url); - if(($h) && (dns_get_record($h['host'], DNS_A + DNS_CNAME + DNS_PTR) || filter_var($h['host'], FILTER_VALIDATE_IP) )) { + if(($h) && (@dns_get_record($h['host'], DNS_A + DNS_CNAME + DNS_PTR) || filter_var($h['host'], FILTER_VALIDATE_IP) )) { return true; } return false; @@ -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, 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; |