mirror of
https://github.com/friendica/friendica
synced 2024-11-19 01:03:40 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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