Update guzzlehttp/psr7
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 17 Apr 2023 16:21:29 +0000 (18:21 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 17 Apr 2023 16:21:29 +0000 (18:21 +0200)
see guzzle/psr7@18fd8915823bd9ca4156e84849e18970057dc7e4

wcfsetup/install/files/lib/system/api/composer.lock
wcfsetup/install/files/lib/system/api/composer/installed.json
wcfsetup/install/files/lib/system/api/composer/installed.php
wcfsetup/install/files/lib/system/api/guzzlehttp/psr7/src/MessageTrait.php

index 8139eb932b5acd77cdf9662255fd072dace77d09..010384c4c97956ef0a5278a0a26f4d0018896e96 100644 (file)
             "source": {
                 "type": "git",
                 "url": "https://github.com/WoltLab/guzzle-psr7",
-                "reference": "3dffed9d5f5a762bcc843155a2f85c36614a299e"
+                "reference": "ea8fce9b54724a3527a5cc630574d0ddaafd5acd"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/WoltLab/guzzle-psr7/zipball/3dffed9d5f5a762bcc843155a2f85c36614a299e",
-                "reference": "3dffed9d5f5a762bcc843155a2f85c36614a299e",
+                "url": "https://api.github.com/repos/WoltLab/guzzle-psr7/zipball/ea8fce9b54724a3527a5cc630574d0ddaafd5acd",
+                "reference": "ea8fce9b54724a3527a5cc630574d0ddaafd5acd",
                 "shasum": ""
             },
             "require": {
                 "uri",
                 "url"
             ],
-            "time": "2022-06-20T21:43:03+00:00"
+            "time": "2023-04-17T15:33:27+00:00"
         },
         {
             "name": "pear/net_idna2",
index 5bb84c263e5f9ff9195744c1f21d84a68648a711..b8340af3481f54674c150a9582f3cac475dafd98 100644 (file)
             "source": {
                 "type": "git",
                 "url": "https://github.com/WoltLab/guzzle-psr7",
-                "reference": "3dffed9d5f5a762bcc843155a2f85c36614a299e"
+                "reference": "ea8fce9b54724a3527a5cc630574d0ddaafd5acd"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/WoltLab/guzzle-psr7/zipball/3dffed9d5f5a762bcc843155a2f85c36614a299e",
-                "reference": "3dffed9d5f5a762bcc843155a2f85c36614a299e",
+                "url": "https://api.github.com/repos/WoltLab/guzzle-psr7/zipball/ea8fce9b54724a3527a5cc630574d0ddaafd5acd",
+                "reference": "ea8fce9b54724a3527a5cc630574d0ddaafd5acd",
                 "shasum": ""
             },
             "require": {
             "suggest": {
                 "zendframework/zend-httphandlerrunner": "Emit PSR-7 responses"
             },
-            "time": "2022-06-20T21:43:03+00:00",
+            "time": "2023-04-17T15:33:27+00:00",
             "type": "library",
             "extra": {
                 "branch-alias": {
index e8b9d2a418821344f6cc3955e7faafc9bf0ce133..e72bdd135e4b32fedbd8cafeee8228602923fc68 100644 (file)
@@ -67,7 +67,7 @@
         'guzzlehttp/psr7' => array(
             'pretty_version' => 'dev-woltlab-1.6.1',
             'version' => 'dev-woltlab-1.6.1',
-            'reference' => '3dffed9d5f5a762bcc843155a2f85c36614a299e',
+            'reference' => 'ea8fce9b54724a3527a5cc630574d0ddaafd5acd',
             'type' => 'library',
             'install_path' => __DIR__ . '/../guzzlehttp/psr7',
             'aliases' => array(
index ca7969febc98857c3fa09967010775f29b970a47..be8686afa6af7838c9367384bdb2a419fa6d0f83 100644 (file)
@@ -225,12 +225,9 @@ trait MessageTrait
             throw new \InvalidArgumentException('Header name can not be empty.');
         }
 
-        if (! preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/', $header)) {
+        if (! preg_match('/^[a-zA-Z0-9\'`#$%&*+.^_|~!-]+$/D', $header)) {
             throw new \InvalidArgumentException(
-                sprintf(
-                    '"%s" is not valid header name',
-                    $header
-                )
+                sprintf('"%s" is not valid header name.', $header)
             );
         }
     }
@@ -262,8 +259,10 @@ trait MessageTrait
         // Clients must not send a request with line folding and a server sending folded headers is
         // likely very rare. Line folding is a fairly obscure feature of HTTP/1.1 and thus not accepting
         // folding is not likely to break any legitimate use case.
-        if (! preg_match('/^[\x20\x09\x21-\x7E\x80-\xFF]*$/', $value)) {
-            throw new \InvalidArgumentException(sprintf('"%s" is not valid header value', $value));
+        if (! preg_match('/^[\x20\x09\x21-\x7E\x80-\xFF]*$/D', $value)) {
+            throw new \InvalidArgumentException(
+                sprintf('"%s" is not valid header value.', $value)
+            );
         }
     }
 }