Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.4.4

Bug #1080 Cookies UrlEncoded
Submitted: 2004-03-26 21:49 UTC
From: eric_c_72 at yahoo dot com Assigned: avb
Status: Closed Package: HTTP_Request
PHP Version: 4.3.3 OS: Fedora
Roadmaps: (Not assigned)    
Subscription  


 [2004-03-26 21:49 UTC] eric_c_72 at yahoo dot com
Description: ------------ I had problem with an email address in a cookie where it was urlencoded. I was using a php script to request pages from a web server and when I passed my email address in a cookie to the web server it would recieve %40 instead of the @. I turned logging on for cookies on the web server and a browser sends the @ but my script sent a %40. Reproduce code: --------------- function addCookie($name, $value) { $cookies = isset($this->_requestHeaders['Cookie']) ? $this->_requestHeaders['Cookie']. '; ' : ''; # $this->addHeader('Cookie', $cookies . urlencode($name) . '=' . urlencode($value)); $this->addHeader('Cookie', $cookies . $name . '=' . $value); } Expected result: ---------------- The code above fixed the problem. Actual result: -------------- sent %40 instaed of @

Comments

 [2004-04-07 18:24 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-04-07 18:30 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2004-04-10 11:05 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!