From 5d41b107b8069e2b266e48afc1aa4429adfa608d Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 19 May 2022 16:06:25 +0200 Subject: [PATCH] Send the requests through the middleware Pipeline in RequestHandler --- .../files/lib/system/request/RequestHandler.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index 9cb4a60976..1de1d9aa60 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -7,6 +7,7 @@ use Laminas\Diactoros\ServerRequestFactory; use Laminas\HttpHandlerRunner\Emitter\SapiEmitter; use Psr\Http\Message\ResponseInterface; use wcf\http\LegacyPlaceholderResponse; +use wcf\http\Pipeline; use wcf\system\application\ApplicationHandler; use wcf\system\box\BoxHandler; use wcf\system\exception\AJAXException; @@ -103,8 +104,10 @@ class RequestHandler extends SingletonFactory \header('cross-origin-resource-policy: same-site'); } + $pipeline = new Pipeline([]); + $this->sendPsr7Response( - $this->getActiveRequest()->handle($psrRequest) + $pipeline->process($psrRequest, $this->getActiveRequest()) ); } catch (NamedUserException $e) { $e->show(); -- 2.20.1