From: Hypolite Petovan Date: Wed, 29 May 2019 01:27:13 +0000 (-0400) Subject: Check for href existence for links in Protocol\PortableContact X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=8a0c568fe103e2e7ef832a623bfb6be6c54e300a;p=friendica.git Check for href existence for links in Protocol\PortableContact See https://github.com/friendica/friendica/issues/6918#issuecomment-495198587 --- 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; }