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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sat Jul 12 15:01:35 2025 UTC