diff options
author | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-07 22:07:11 +0100 |
---|---|---|
committer | Stefan Parviainen <saparvia@caterva.eu> | 2015-01-07 22:07:11 +0100 |
commit | 7176eb88452b3c74652de09e44de41943051391c (patch) | |
tree | 0ab8af1ffb5a92962b2918e274cae26046897d11 /include/network.php | |
parent | f3cd29f829ab66fe1f9fac306dcc6fa20858ad52 (diff) | |
parent | a373b9f1d4d0ee6781927c3fcf05e0e301a80b6e (diff) | |
download | volse-hubzilla-7176eb88452b3c74652de09e44de41943051391c.tar.gz volse-hubzilla-7176eb88452b3c74652de09e44de41943051391c.tar.bz2 volse-hubzilla-7176eb88452b3c74652de09e44de41943051391c.zip |
Merge autocomplete caching, show more results in navbar search
Diffstat (limited to 'include/network.php')
-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; |