From 8a2ffffe71ba1cad6b1f77c918440bdec51b3d45 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Mon, 8 May 2017 19:02:34 +0200 Subject: [PATCH 1/2] Bugfix: correct uninitialized variables --- src/Network/Probe.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index fb4c4f66dd..9e11619a11 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -184,6 +184,7 @@ class Probe { public static function lrdd($uri) { $lrdd = self::xrd($uri); + $webfinger = null; if (!$lrdd) { $parts = @parse_url($uri); @@ -333,7 +334,7 @@ class Probe { /// The biggest problem is the avatar picture that could have a reduced image size. /// It should only be updated if the existing picture isn't existing anymore. if (($data['network'] != NETWORK_FEED) - AND ($mode == PROBE_NORMAL) + AND ($data["network"] != NETWORK_DIASPORA) AND $data["name"] AND $data["nick"] AND $data["url"] @@ -402,8 +403,8 @@ class Probe { } elseif (strstr($uri, '@')) { // If the URI starts with "mailto:" then jump directly to the mail detection - if (strpos($url, 'mailto:') !== false) { - $uri = str_replace('mailto:', '', $url); + if (strpos($uri, 'mailto:') !== false) { + $uri = str_replace('mailto:', '', $uri); return self::mail($uri, $uid); } From 3d5ff8bab344add3773cd1f6f24ef11a9e490ddf Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Mon, 8 May 2017 19:04:01 +0200 Subject: [PATCH 2/2] remove use of PConfig Class from Probe class because we don't use it here --- src/Network/Probe.php | 1 - 1 file changed, 1 deletion(-) diff --git a/src/Network/Probe.php b/src/Network/Probe.php index 9e11619a11..d0c74e5ae6 100644 --- a/src/Network/Probe.php +++ b/src/Network/Probe.php @@ -10,7 +10,6 @@ namespace Friendica\Network; use Friendica\App; use Friendica\Core\Config; -use Friendica\Core\PConfig; require_once 'include/feed.php'; require_once 'include/email.php';