From: Tim Düsterhus Date: Thu, 19 May 2022 14:06:25 +0000 (+0200) Subject: Send the requests through the middleware Pipeline in RequestHandler X-Git-Tag: 6.0.0_Alpha_1~1266^2~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d41b107b8069e2b266e48afc1aa4429adfa608d;p=GitHub%2FWoltLab%2FWCF.git Send the requests through the middleware Pipeline in RequestHandler --- 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();