|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9723 & not being encoded, invalid html
Submitted: 2001-03-13 06:28 UTC Modified: 2001-04-03 09:20 UTC
From: alex dot dent at softhome dot net Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.4pl1 OS:
Private report: No CVE-ID: None
 [2001-03-13 06:28 UTC] alex dot dent at softhome dot net
php 4.0.4 pl1 does not correctly encode the & as & when
trans-sid is enabled. this is rather annoying because this
is simply invalid html. it does work only because browser
are used to all kinds of wrong code, but that?s not the problem.

ie. php writes url.php4?some=arg&PHPSESSID=xxxx where
url.php4?some=arg&PHPSESSID=xxxx would be correct.

& is a special xml/html char and must always be encoded in a
valid html document.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-03 09:20 UTC]
This is fixed in CVS. Try latest snapshot from and check the php.ini-dist for
arg_separator directive.


PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Feb 06 12:03:42 2023 UTC