Do not use named parameters for ServerRequestFactory::fromGlobals()
authorTim Düsterhus <duesterhus@woltlab.com>
Thu, 30 Jun 2022 09:41:00 +0000 (11:41 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Thu, 30 Jun 2022 09:41:00 +0000 (11:41 +0200)
Laminas does not guarantee backwards compatibility for parameter names.

wcfsetup/install/files/lib/system/request/RequestHandler.class.php

index ee6711e5f66c5ec7bfd07e5a591c21d8c62742aa..7e08c2efd9f1d37c42fae399e950e676af6f49ca 100644 (file)
@@ -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]
                 )