Merge pull request #12796 from annando/fatal
Fix fatal error because of an invalid url
This commit is contained in:
commit
40e0ea239a
|
@ -1060,10 +1060,11 @@ class GServer
|
||||||
Logger::info('Invalid nodeinfo format', ['url' => $url]);
|
Logger::info('Invalid nodeinfo format', ['url' => $url]);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($link['rel'] == 'http://nodeinfo.diaspora.software/ns/schema/1.0') {
|
if ($link['rel'] == 'http://nodeinfo.diaspora.software/ns/schema/1.0') {
|
||||||
$nodeinfo1_url = $link['href'];
|
$nodeinfo1_url = Network::addBasePath($link['href'], $httpResult->getUrl());
|
||||||
} elseif ($link['rel'] == 'http://nodeinfo.diaspora.software/ns/schema/2.0') {
|
} elseif ($link['rel'] == 'http://nodeinfo.diaspora.software/ns/schema/2.0') {
|
||||||
$nodeinfo2_url = $link['href'];
|
$nodeinfo2_url = Network::addBasePath($link['href'], $httpResult->getUrl());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user