php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15804 PHPSESSID in querystring causes XHTML validator to fail
Submitted: 2002-03-01 02:26 UTC Modified: 2002-03-01 02:32 UTC
From: webmaster at exclupen dot com Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.1.2 OS: Apache/1.3.23 (Unix)
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: webmaster at exclupen dot com
New email:
PHP Version: OS:

 

 [2002-03-01 02:26 UTC] webmaster at exclupen dot com
PHP is compiled with --enable-trans-sid.  When I turn on sessions on, (with session_start()) and try to validate my previously valid XHTML page, the validator throws errors on every link.

[quote from W3C XHTML 1.0 Transitional validator]:
Error: reference not terminated by refc delimiter 
[end quote]

It's referring to the fact that there is a "&" in the code when it is not part of an entity.  Without using sessions, I can use & in a URL and the page will validate.

I guess the actual bug is that it's inserting a & instead of an & which is invalid XHTML.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-03-01 02:32 UTC] derick@php.net
From php.ini-recommended:

; The separator used in PHP generated URLs to separate arguments.
; Default is "&".
;arg_separator.output = "&"


regards,
Derick
 [2002-03-07 11:52 UTC] wim at kern dot nl
More over, the real problem is that the seperation character for URI params is ; not &
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 30 06:01:29 2024 UTC