note 28976 added to reserved.variables
| From: | kamil dot kukura at nexen dot cz | Date: | Wed, 29 Jan 2003 15:41:39 +0000 |
| Subject: | note 28976 added to reserved.variables | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-43077@lists.php.net to get a copy of this message | ||
It seems that parsing cookies from HTTP headers into $_COOKIE associative array is incorrect.
According to RFC2109/RFC2616 in header such as "Cookie: test=2+2", the plus sign stands
for a valid character, it's not considered as separator or CTL character (RFC2616, 2.2 Basic
Rules).
However, in $_COOKIE['test'] will contain "2 2" as the result.
--
http://www.php.net/manual/en/reserved.variables.php
http://master.php.net/manage/user-notes.php?action=edit+28976
http://master.php.net/manage/user-notes.php?action=delete+28976
http://master.php.net/manage/user-notes.php?action=reject+28976