kopia lustrzana https://github.com/nextcloud/social
Merge pull request #1562 from nextcloud/artonge/fix/well-known/webfinger
Fix detection of webfinger endpoint with no 'resource' parampull/1564/head
commit
6c07b0588b
|
@ -101,7 +101,7 @@ class WebfingerHandler implements IHandler {
|
|||
* @return IResponse|null
|
||||
*/
|
||||
public function handleWebfinger(IRequestContext $context): ?IResponse {
|
||||
$subject = $context->getHttpRequest()->getParam('resource');
|
||||
$subject = $context->getHttpRequest()->getParam('resource') ?? '';
|
||||
if (strpos($subject, 'acct:') === 0) {
|
||||
$subject = substr($subject, 5);
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue