Return 400 error code when webfinger request omits resource parameter. Fixes #14292

pull/14293/head
Matthew Exon 2024-07-11 18:18:54 +02:00
rodzic 946337645d
commit d4aa5d9aad
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -44,7 +44,7 @@ class Xrd extends BaseModule
// @TODO: Replace with parameter from router
if (DI::args()->getArgv()[0] == 'xrd') {
if (empty($_GET['uri'])) {
return;
throw new BadRequestException();
}
$uri = urldecode(trim($_GET['uri']));
@ -55,7 +55,7 @@ class Xrd extends BaseModule
}
} else {
if (empty($_GET['resource'])) {
return;
throw new BadRequestException();
}
$uri = urldecode(trim($_GET['resource']));