From: Marcus Müller Date: Thu, 12 Apr 2018 17:28:52 +0000 (+0200) Subject: [BUGFIX] Network: Remove URL/domain DNS_PTR checks X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f9c34fee5a0793704478ece2ee25f1f8e0a33eb5;p=friendica.git [BUGFIX] Network: Remove URL/domain DNS_PTR checks --- diff --git a/src/Util/Network.php b/src/Util/Network.php index bbdc51fbbb..4a11f92595 100644 --- a/src/Util/Network.php +++ b/src/Util/Network.php @@ -446,7 +446,7 @@ class Network /// @TODO Really suppress function outcomes? Why not find them + debug them? $h = @parse_url($url); - if ((is_array($h)) && (@dns_get_record($h['host'], DNS_A + DNS_CNAME + DNS_PTR) || filter_var($h['host'], FILTER_VALIDATE_IP) )) { + if ((is_array($h)) && (@dns_get_record($h['host'], DNS_A + DNS_CNAME) || filter_var($h['host'], FILTER_VALIDATE_IP) )) { return $url; } @@ -471,7 +471,7 @@ class Network $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_MX) || filter_var($h, FILTER_VALIDATE_IP) )) { return true; } return false;