php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #17075 Prevent cookies being rawurlencoded
Submitted: 2002-05-07 12:29 UTC Modified: 2005-08-11 19:28 UTC
Votes:1
Avg. Score:4.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: csaba at alum dot mit dot edu Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.2.0 OS: All
Private report: No CVE-ID: None
 [2002-05-07 12:29 UTC] 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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-08-11 19:28 UTC] nlopess@php.net
A setrawcookie() was added in PHP 5.0.0
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Sep 19 01:01:27 2024 UTC