ZF-10936: CookieJar doesn't allow to disable encoding of cookies.

Issue Type: Bug Created: 2011-01-11T03:03:42.000+0000 Last Updated: 2012-08-31T08:50:07.000+0000 Status: Open Fix version(s): Reporter: Alwin Garside (yogarine) Assignee: Shahar Evron (shahar) Tags: - Zend_Http_CookieJar

Related issues: Attachments:


When cookies are added normally througt Zend_Http_Client, (e.g. Zend_Http_Client::setCookie()) then Zend_Http_Client::fromString() is used which offers the option to disable encoding through the $encodeValue parameter.

However, when a Zend_Http_CookieJar is used, cookies are set through Zend_Http_CookieJar::addCookie(), which doesn't offer the option. The result being that if you use a CookieJar, you have no control over whether or not the cookies are encoded. This is a problem since CookieJar::addCookiesFromResponse() sets cookies from strings using Zend_Http_CookieJar::addCookie().

This can be fixed in a backwards compatible manner by giving addCookie() an extra optional parameters that allows to define whether the value should be encoded.


No comments to display

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.