From: Marcel Werk Date: Wed, 1 Jan 2025 14:00:27 +0000 (+0100) Subject: Fix missing error message if given access token was invalid X-Git-Tag: 6.1.3_dev_3~5 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6800ac1554b8163e70128da1e72801bc4d91cf0e;p=GitHub%2FWoltLab%2FWCF.git Fix missing error message if given access token was invalid --- 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);