Check for href existence for links in Protocol\PortableContact
See https://github.com/friendica/friendica/issues/6918#issuecomment-495198587
This commit is contained in:
parent
e557457158
commit
8a0c568fe1
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue