#17075 [Opn->Csd]: Prevent cookies being rawurlencoded
| From: | nlopess@php.net | Date: | Thu, 11 Aug 2005 17:28:12 +0000 |
| Subject: | #17075 [Opn->Csd]: Prevent cookies being rawurlencoded | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83385@lists.php.net to get a copy of this message | ||
ID: 17075
Updated by: nlopess@php.net
Reported By: csaba at alum dot mit dot edu
-Status: Open
+Status: Closed
Bug Type: Feature/Change Request
Operating System: All
PHP Version: 4.2.0
New Comment:
A setrawcookie() was added in PHP 5.0.0
Previous Comments:
------------------------------------------------------------------------
[2002-05-07 12:29:30] csaba at alum dot mit dot edu
setcookie rawurlencodes all cookies before going out, which precludes
being able to set certain cookies. For example, suppose I want '=' or
'&' in a cookie. I have to use Header and manually construct the
cookie.
Perhaps we could get a rawsetcookie(...) function which behaves the
same except that it does not do any encoding and fails if it is passed
an illegal character.
(related report http://bugs.php.net/bug.php?id=17050)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17075&edit=1