From 8a0c568fe103e2e7ef832a623bfb6be6c54e300a Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 28 May 2019 21:27:13 -0400 Subject: [PATCH] Check for href existence for links in Protocol\PortableContact See https://github.com/friendica/friendica/issues/6918#issuecomment-495198587 --- src/Protocol/PortableContact.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Protocol/PortableContact.php b/src/Protocol/PortableContact.php index b9c1533e66..5345cb22fc 100644 --- a/src/Protocol/PortableContact.php +++ b/src/Protocol/PortableContact.php @@ -665,7 +665,7 @@ class PortableContact $nodeinfo2_url = ''; foreach ($nodeinfo['links'] as $link) { - if (!is_array($link) || empty($link['rel'])) { + if (!is_array($link) || empty($link['rel']) || empty($link['href'])) { Logger::log('Invalid nodeinfo format for ' . $server_url, Logger::DEBUG); continue; }