Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / guzzlehttp / guzzle / src / Cookie / SetCookie.php
index 4c40407731d0e0874188b4dae93de49f69d4ebee..f6993943e747c2d56218b343c74d7444bcb98cd8 100644 (file)
@@ -377,8 +377,8 @@ class SetCookie
         // Check if any of the invalid characters are present in the cookie name
         if (preg_match(
             '/[\x00-\x20\x22\x28-\x29\x2c\x2f\x3a-\x40\x5c\x7b\x7d\x7f]/',
-            $name)
-        ) {
+            $name
+        )) {
             return 'Cookie name must not contain invalid characters: ASCII '
                 . 'Control characters (0-31;127), space, tab and the '
                 . 'following characters: ()<>@,;:\"/?={}';