Fix wrong log warning message for request_uri validation

This commit is contained in:
Diogo Peralta Cordeiro 2022-01-20 12:11:40 +00:00
parent 13ebdf68e9
commit 3023179d74
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0

View File

@ -463,7 +463,7 @@ class Server {
// Validate the redirect URI. // Validate the redirect URI.
if (!isset($queryParams['redirect_uri']) || false === filter_var($queryParams['redirect_uri'], FILTER_VALIDATE_URL)) { if (!isset($queryParams['redirect_uri']) || false === filter_var($queryParams['redirect_uri'], FILTER_VALIDATE_URL)) {
$this->logger->warning("The client_id provided in an authorization request was not valid.", $queryParams); $this->logger->warning("The request_uri provided in an authorization request was not valid.", $queryParams);
throw IndieAuthException::create(IndieAuthException::INVALID_REDIRECT_URI, $request); throw IndieAuthException::create(IndieAuthException::INVALID_REDIRECT_URI, $request);
} }