From: Tim Düsterhus Date: Thu, 30 Jun 2022 09:41:00 +0000 (+0200) Subject: Do not use named parameters for ServerRequestFactory::fromGlobals() X-Git-Tag: 6.0.0_Alpha_1~1133^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c800157fbf6cb8a15649a86b34fc8046a34ff59c;p=GitHub%2FWoltLab%2FWCF.git Do not use named parameters for ServerRequestFactory::fromGlobals() Laminas does not guarantee backwards compatibility for parameter names. --- diff --git a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php index ee6711e5f6..7e08c2efd9 100644 --- a/wcfsetup/install/files/lib/system/request/RequestHandler.class.php +++ b/wcfsetup/install/files/lib/system/request/RequestHandler.class.php @@ -74,7 +74,12 @@ final class RequestHandler extends SingletonFactory } $psrRequest = ServerRequestFactory::fromGlobals( - requestFilter: FilterUsingXForwardedHeaders::trustProxies( + $_SERVER, + $_GET, + $_POST, + $_COOKIE, + $_FILES, + FilterUsingXForwardedHeaders::trustProxies( ['*'], [FilterUsingXForwardedHeaders::HEADER_PROTO] )