From: Michael Vogel Date: Thu, 26 Nov 2015 20:58:01 +0000 (+0100) Subject: Bugfix: There was an endless loop in the probe_url function ... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fa8b4738ee9af2cc27c1547828da7270af719bac;p=friendica.git Bugfix: There was an endless loop in the probe_url function ... --- diff --git a/include/Scrape.php b/include/Scrape.php index 64a930bfda..4f9d675c18 100644 --- a/include/Scrape.php +++ b/include/Scrape.php @@ -17,10 +17,12 @@ function scrape_dfrn($url, $dont_probe = false) { if(! $s) return $ret; - $probe = probe_url($url); + if (!$dont_probe) { + $probe = probe_url($url); - if (isset($probe["addr"])) - $ret["addr"] = $probe["addr"]; + if (isset($probe["addr"])) + $ret["addr"] = $probe["addr"]; + } $headers = $a->get_curl_headers(); logger('scrape_dfrn: headers=' . $headers, LOGGER_DEBUG);