php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8274 PHP not w3c compliant
Submitted: 2000-12-15 08:09 UTC Modified: 2000-12-22 17:47 UTC
From: klaasb at abrh dot nl Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.3pl1 OS: Linux Redhat 6.1 running 2.2.18
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: klaasb at abrh dot nl
New email:
PHP Version: OS:

 

 [2000-12-15 08:09 UTC] klaasb at abrh dot nl
When I ran my page through the HTML validator of de http://www.w3c.org/ I ran into the following:
PHP sometimes adds &PHPSESSID=bladiebla to urls in my page.
However the use of the & is not valid according to w3c.org, I should use & instead.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-17 10:34 UTC] stas@php.net
& is a variable separator in URL and as such, is a valid URL
character.
 [2000-12-18 04:58 UTC] stas@php.net
You may use arg_separator INI entry, like this:

arg_separator = "&"
 [2000-12-18 05:20 UTC] sniper@php.net
Reopened, as the arg_separator directive is missing from
php.ini-dist / optimized and using '&' with it
does not work as the variable values get chopped.

Test script (shortest possible ;)

test.php:
<?php phpinfo();?>

And as url use something like this:

test.php?test1=12345&abcd=12345&aaa=bbbbb

BUT using ';' with arg_separator works fine
which is (AFAIK) valid too.

--Jani


 [2000-12-18 05:37 UTC] sniper@php.net
And one more thing:

When using transsids, ';' works fine, but when
'&amp;' is used, only '&' is taken of it..

--Jani
 [2000-12-22 17:47 UTC] sas@php.net
Fixed in CVS. Thanks for your report!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 21:01:33 2024 UTC