PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTTP » HTTP_Request » Bug #8741

Incorrect cookie value parsing

Details

Submitted2006-09-20 08:01 UTC
Fromkalex0002 at yahoo dot com
StatusBogus
PackageHTTP_Request
PHP Version4.3.10
OSDebian 3.1
Roadmaps(Not assigned)

Comments

[2006-09-20 08:01 UTC] kalex0002 at yahoo dot com

Description:
------------
HTTP/Request.php
function _parseCookie
Incorrectly handles cookie parsing if cookie value contains '='.
Example cookie, that will be parsed wrong:
Set-Cookie: A=foo==bar;

[2006-10-09 09:51 UTC] kalex0002 at yahoo dot com

Set-Cookie: A=B=C
Expected result: cookie value equals "B=C"
Actual result: cookie value equals "B"
Equal sign "=" often appears in base64 encoded strings.

[2006-10-09 13:22 UTC] kalex0002 at yahoo dot com

Indeed.
Sorry, probably I've got an outdated version of the package, current source seems to handle it correctly. All the best, and keep up the excellent work.