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

Commit

Permalink
Forward port #2929
Browse files Browse the repository at this point in the history
  • Loading branch information
Maks3w committed Nov 14, 2012
2 parents 6d8a006 + 9fffcff commit 91e7eca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion library/Zend/Http/Header/SetCookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public static function fromString($headerLine, $bypassHeaderFieldName = false)
// First K=V pair is always the cookie name and value
if ($header->getName() === NULL) {
$header->setName($headerKey);
$header->setValue($headerValue);
$header->setValue(urldecode($headerValue));
continue;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/ZendTest/Http/Header/SetCookieTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public static function validCookieWithInfoProvider()
'secure' => true,
'httponly'=> false
),
'PHPSESSID=123456789%2Babcd%252Cef; Expires=Tue, 21-Nov-2006 08:33:44 GMT; Domain=.localdomain; Path=/foo/baz; Secure'
'PHPSESSID=123456789+abcd%2Cef; Expires=Tue, 21-Nov-2006 08:33:44 GMT; Domain=.localdomain; Path=/foo/baz; Secure'
),
array(
'Set-Cookie: myname=myvalue; Domain=docs.foo.com; Path=/accounts; Expires=Wed, 13-Jan-2021 22:23:01 GMT; Secure; HttpOnly',
Expand Down

0 comments on commit 91e7eca

Please sign in to comment.