Fix missing error message if given access token was invalid
authorMarcel Werk <burntime@woltlab.com>
Wed, 1 Jan 2025 14:00:27 +0000 (15:00 +0100)
committerMarcel Werk <burntime@woltlab.com>
Wed, 1 Jan 2025 14:00:27 +0000 (15:00 +0100)
wcfsetup/install/files/lib/http/middleware/HandleAccessToken.class.php

index fa657cd24575fac901c3784acc172cf2092996b5..7f0f38da908bb4e6f2397f59a02a9eb38c20419e 100644 (file)
@@ -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);