From c800157fbf6cb8a15649a86b34fc8046a34ff59c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Thu, 30 Jun 2022 11:41:00 +0200 Subject: [PATCH] Do not use named parameters for ServerRequestFactory::fromGlobals() Laminas does not guarantee backwards compatibility for parameter names. --- .../files/lib/system/request/RequestHandler.class.php | 7 ++++++- 1 file changed, 6 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 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] ) -- 2.20.1