Merge pull request #1562 from nextcloud/artonge/fix/well-known/webfinger

Fix detection of webfinger endpoint with no 'resource' param
pull/1564/head
Louis 2023-01-04 17:50:40 +01:00 zatwierdzone przez GitHub
commit 6c07b0588b
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

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