Check for href existence for links in Protocol\PortableContact

See https://github.com/friendica/friendica/issues/6918#issuecomment-495198587
This commit is contained in:
Hypolite Petovan 2019-05-28 21:27:13 -04:00
parent e557457158
commit 8a0c568fe1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}