From fa8b4738ee9af2cc27c1547828da7270af719bac Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 26 Nov 2015 21:58:01 +0100 Subject: [PATCH] Bugfix: There was an endless loop in the probe_url function ... --- include/Scrape.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); -- 2.39.5