php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #28551 session.use_trans_sid bug
Submitted: 2004-05-27 22:53 UTC Modified: 2004-05-27 23:27 UTC
From: irie at gmx dot de Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.6 OS: Linux
Private report: No CVE-ID: None
 [2004-05-27 22:53 UTC] irie at gmx dot de
Description:
------------
I faced a problem when using & as the argument-seperator in URIs with session.use_trans_sid turned on.

According to the w3-specs (see http://www.w3.org/TR/html4/appendix/notes.html#h-B.2.2 ) & is equivalent to & so I think it should work. But the arguments are getting mixed up. With & as the seperator it's working well.

It's the same with php5.0RC2.

Expected result:
----------------
<a href="toggle.php?a=table&#38;p=5&#38;d=open&#38;sid=2dba9000ab000190477a57d27433f121">


Actual result:
--------------
<a href="toggle.php?a=table&&#38;sid=2dba9000ab000190477a57d27433f121#38;p=5&#38;d=open">

(with arg_separator.output = "&#38;")

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-05-27 22:56 UTC] iliaa@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

If you are using &#38;, you need to tell PHP that is what 
you are using via arg_separator.input ini option. 
 [2004-05-27 23:27 UTC] irie at gmx dot de
The arg_separator.input option isn't the solution, because it didn't accept strings as seperator but only single characters.

On the other hand if php only supports single charcters as arg-sepereators (and &amp; as an exception) I can easily live with that but this could be better documented...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 01:01:27 2024 UTC