]> git.mxchange.org Git - friendica.git/commitdiff
Bugfix: There was an endless loop in the probe_url function ...
authorMichael Vogel <icarus@dabo.de>
Thu, 26 Nov 2015 20:58:01 +0000 (21:58 +0100)
committerMichael Vogel <icarus@dabo.de>
Thu, 26 Nov 2015 20:58:01 +0000 (21:58 +0100)
include/Scrape.php

index 64a930bfdaedebfccbf46acb9f37a03085174cbe..4f9d675c1801309f5d11fee3a6bd2a79b28ea21e 100644 (file)
@@ -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);