mirror of
https://github.com/friendica/friendica
synced 2024-12-24 16:40:15 +00:00
Bugfix: There was an endless loop in the probe_url function ...
This commit is contained in:
parent
e146b42d15
commit
fa8b4738ee
1 changed files with 5 additions and 3 deletions
|
@ -17,10 +17,12 @@ function scrape_dfrn($url, $dont_probe = false) {
|
||||||
if(! $s)
|
if(! $s)
|
||||||
return $ret;
|
return $ret;
|
||||||
|
|
||||||
$probe = probe_url($url);
|
if (!$dont_probe) {
|
||||||
|
$probe = probe_url($url);
|
||||||
|
|
||||||
if (isset($probe["addr"]))
|
if (isset($probe["addr"]))
|
||||||
$ret["addr"] = $probe["addr"];
|
$ret["addr"] = $probe["addr"];
|
||||||
|
}
|
||||||
|
|
||||||
$headers = $a->get_curl_headers();
|
$headers = $a->get_curl_headers();
|
||||||
logger('scrape_dfrn: headers=' . $headers, LOGGER_DEBUG);
|
logger('scrape_dfrn: headers=' . $headers, LOGGER_DEBUG);
|
||||||
|
|
Loading…
Reference in a new issue