#40781 [Fbk->Opn]: <input name="PHPSESSID" /> invalid HTML
| From: | php dot net at steltenpower dot com | Date: | Mon, 12 Mar 2007 11:44:28 +0000 |
| Subject: | #40781 [Fbk->Opn]: <input name="PHPSESSID" /> invalid HTML | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-110230@lists.php.net to get a copy of this message | ||
ID: 40781
User updated by: php dot net at steltenpower dot com
Reported By: php dot net at steltenpower dot com
-Status: Feedback
+Status: Open
Bug Type: Session related
Operating System: Linux
PHP Version: 4.4.5
New Comment:
I'm using PHP's built-in session system through session_start() etc.
In the HTML output this results in lots of things of which
<input type="hidden" name="PHPSESSID" value="8748someLongId865"
/>
is part.
The
/
in there should be removed to make it valid HTML
sidenote:
The
/
is needed for XHTML (which might also need
name
replaced with
id)
So to be able to use the PHP built-in system for both valid HTML and
valid XHTML a switch, flag, ini setting, or something is needed
Previous Comments:
------------------------------------------------------------------------
[2007-03-12 09:29:33] tony2001@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2007-03-12 00:19:34] php dot net at steltenpower dot com
Description:
------------
<input type="hidden" name="PHPSESSID" value="..." />
is generated and the / makes it invalid HTML.
XHTML needs the /
So to be able to output both valid HTML and valid XHTML an ini variable
or something is needed
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=40781&edit=1