From 34a955532b7b281fe6b4f68a076818dcfb0575e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Gallego?= Date: Thu, 13 Feb 2014 18:24:25 +0100 Subject: [PATCH] Remove restriction --- library/Zend/Http/Header/SetCookie.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/library/Zend/Http/Header/SetCookie.php b/library/Zend/Http/Header/SetCookie.php index 5030ab246c3..f58a931ee66 100644 --- a/library/Zend/Http/Header/SetCookie.php +++ b/library/Zend/Http/Header/SetCookie.php @@ -260,10 +260,6 @@ public function getFieldValue() */ public function setName($name) { - if ($name !== null && preg_match("/[=,; \t\r\n\013\014]/", $name)) { - throw new Exception\InvalidArgumentException("Cookie name cannot contain these characters: =,; \\t\\r\\n\\013\\014 ({$name})"); - } - $this->name = $name; return $this; }