php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #38349 PHPSESSID is appended in HTML contents of text fields
Submitted: 2006-08-05 17:45 UTC Modified: 2006-08-05 17:51 UTC
From: matei dot tene at unidec dot ro Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.4.3 OS: Windows 2000
Private report: No CVE-ID: None
 [2006-08-05 17:45 UTC] matei dot tene at unidec dot ro
Description:
------------
Well. I guess that many forum administrators that allow html in posts have this problem.

I am using php 4.2.2, and i have a form who's contents can (and most frequently do) contain html tags like <a href="...">. This form is filled out in the administration portion of the site (which requires authentification and thus uses sessions). The problem is that, upon submission, PHP appends the PHPSESSID in the html tags contained in the body of the text fields, like:

<form>
<input type=text value="<a href=http://url>">
</form>

becomes

<form>
<input type=text value="<a href=http://url?PHPSESSID=1234565756..>">
</form>

Has this been fixed in later versions of PHP?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-08-05 17:51 UTC] tony2001@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 00:01:33 2024 UTC