#19697 [Csd->Bgs]: mcrypt and cookies
| From: | sander@php.net | Date: | Wed, 02 Oct 2002 18:32:03 +0000 |
| Subject: | #19697 [Csd->Bgs]: mcrypt and cookies | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-21318@lists.php.net to get a copy of this message | ||
ID: 19697
Updated by: sander@php.net
Reported By: avillarm@terra.es
-Status: Closed
+Status: Bogus
Bug Type: mcrypt related
Operating System: Linux
PHP Version: 4.2.2
New Comment:
User error -> bogus
Previous Comments:
------------------------------------------------------------------------
[2002-10-02 13:10:48] avillarm@terra.es
Ok, used the base64_encode and it works :)
------------------------------------------------------------------------
[2002-10-01 15:05:12] iliaa@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
cookies are not binary safe. Use base64_encode() function to encode
them if you wish to prevent data corruption.
------------------------------------------------------------------------
[2002-10-01 15:04:22] avillarm@terra.es
Ok, thanks.
------------------------------------------------------------------------
[2002-10-01 15:01:59] avillarm@terra.es
Sorry, the only change in the bug report was: "type=time".
------------------------------------------------------------------------
[2002-10-01 15:01:11] derick@php.net
Sorry, but the bug system is not the appropriate forum for asking
support questions. Your problem does not imply a bug in PHP itself.
For a list of more appropriate places to ask for help using PHP,
please visit http://www.php.net/support.php
Thank you for your interest in PHP.
You shouldn't store binary data into cookies, use base64_encode() or
similiar. Also, that slash was most likely added because you have
something like magic_quotes set to on in php.ini
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/19697
--
Edit this bug report at http://bugs.php.net/?id=19697&edit=1