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

Bug #1908 Session added to redirect with $param
Submitted: 2004-07-19 05:05 UTC
From: ok at tagilbank dot ru Assigned: mike
Status: Closed Package: HTTP_Header
PHP Version: 4.3.4 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 42 - 40 = ?

 
 [2004-07-19 05:05 UTC] ok at tagilbank dot ru
Description: ------------ In 1.0.0RC1 HTTP_Header::redirect(): if $param = array the function generates session_name (but not need to do it). Reproduce code: --------------- if ($param || (!isset($param) && ini_get('session.use_trans_sid'))) { $qs[] = session_name() .'='. session_id(); } ---------------------- should be: if ($param===true || (!isset($param) && ini_get('session.use_trans_sid'))) { $qs[] = session_name() .'='. session_id(); } ---------------------- HTTP_Header::redirect("/some.php", array("aa" => "bb")) Expected result: ---------------- /some.php?aa=bb Actual result: -------------- /some.php?session=1aa615d479df24cb16570b3c64e85d94&aa=bb

Comments

 [2004-07-19 09: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-07-23 05:11 UTC] ok at tagilbank dot ru
for version 1.0.0 in HTTP_Header::redirect() If I have empty $_SERVER['QUERY_STRING'] the code: $url .= (isset($purl['query']) ? '&' : '?') . implode('&', $qs); adding "?" at the end of url.
 [2004-07-23 11:23 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-07-28 14:22 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!