Bug #16736 Updated: trans-sid breaks when GET string includes colon
| From: | sander@php.net | Date: | Tue, 23 Apr 2002 08:21:27 +0000 |
| Subject: | Bug #16736 Updated: trans-sid breaks when GET string includes colon | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-5641@lists.php.net to get a copy of this message | ||
ID: 16736
Updated by: sander@php.net
Reported By: carljm@goshen.edu
-Status: Open
+Status: Bogus
Bug Type: Session related
Operating System: RedHat Linux 7.2
PHP Version: 4.1.2
New Comment:
A colon is not an allowed character in GET urls. Replace it with the
appropriate %xxx value or use urlencode().
Previous Comments:
------------------------------------------------------------------------
[2002-04-22 15:34:51] carljm@goshen.edu
It appears that if the already-existing GET string of a URl includes
the colon character (:), trans-sid will not add the session id to that
URL. This problem is demonstrated by this short demo script:
<?php
session_start();
echo $_SESSION['counter']++;
?>
<a href="test.php?somevar[key:3]=value">Bad Link</a>
The incorrect behavior occurs whether the colon appears in the
attribute name or in the value. If the colon is removed from the GET
string, the link is rewritten correctly.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16736&edit=1