Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Header/SetCookie.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function fromString($headerLine, $bypassHeaderFieldName = false)
109109
// First K=V pair is always the cookie name and value
110110
if ($header->getName() === NULL) {
111111
$header->setName($headerKey);
112-
$header->setValue($headerValue);
112+
$header->setValue(urldecode($headerValue));
113113
continue;
114114
}
115115

test/Header/SetCookieTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ public static function validCookieWithInfoProvider()
319319
'secure' => true,
320320
'httponly'=> false
321321
),
322-
'PHPSESSID=123456789%2Babcd%252Cef; Expires=Tue, 21-Nov-2006 08:33:44 GMT; Domain=.localdomain; Path=/foo/baz; Secure'
322+
'PHPSESSID=123456789+abcd%2Cef; Expires=Tue, 21-Nov-2006 08:33:44 GMT; Domain=.localdomain; Path=/foo/baz; Secure'
323323
),
324324
array(
325325
'Set-Cookie: myname=myvalue; Domain=docs.foo.com; Path=/accounts; Expires=Wed, 13-Jan-2021 22:23:01 GMT; Secure; HttpOnly',

0 commit comments

Comments
 (0)