Home » HTTP » HTTP_Request » Bug #8741
Incorrect cookie value parsing
Details
| Submitted | 2006-09-20 08:01 UTC |
|---|---|
| From | kalex0002 at yahoo dot com |
| Status | Bogus |
| Package | HTTP_Request |
| PHP Version | 4.3.10 |
| OS | Debian 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.