From 6800ac1554b8163e70128da1e72801bc4d91cf0e Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 1 Jan 2025 15:00:27 +0100 Subject: [PATCH] Fix missing error message if given access token was invalid --- .../files/lib/http/middleware/HandleAccessToken.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/http/middleware/HandleAccessToken.class.php b/wcfsetup/install/files/lib/http/middleware/HandleAccessToken.class.php index fa657cd245..7f0f38da90 100644 --- a/wcfsetup/install/files/lib/http/middleware/HandleAccessToken.class.php +++ b/wcfsetup/install/files/lib/http/middleware/HandleAccessToken.class.php @@ -30,7 +30,7 @@ final class HandleAccessToken implements MiddlewareInterface public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { if (!$this->handleAccessToken($request->getQueryParams()['at'] ?? '')) { - (new NotFoundHandler())->handle($request); + return (new NotFoundHandler())->handle($request); } return $handler->handle($request); -- 2.20.1