|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-02 17:54 UTC] judas at dotgeek dot org
[2005-12-02 19:06 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 15:00:01 2025 UTC |
Description: ------------ As far as I know (Netscape specification) cookies are allowed to contain the '+'-character. Up to and including PHP 4.4.0 this is the way they were handled. But with PHP 4.4.1 pluses in the cookie value are replaced by a single space, like in values of GET-parameters. Reproduce code: --------------- // run twice header('Set-Cookie: my_cookie=ABC+DEF'); phpinfo(); Expected result: ---------------- // as up to 4.4.0 _REQUEST['my_cookie'] == 'ABC+DEF'; _COOKIE['my_cookie'] == 'ABC+DEF'; _SERVER["HTTP_COOKIE"] == 'my_cookie=ABC+DEF'; Actual result: -------------- _REQUEST['my_cookie'] == 'ABC DEF'; _COOKIE['my_cookie'] == 'ABC DEF'; _SERVER["HTTP_COOKIE"] == 'my_cookie=ABC+DEF';