#12941 [Com]: &PHPSESSID appended to links causes invalud html.

From: Date: Sun, 23 May 2004 00:24:14 +0000
Subject: #12941 [Com]: &PHPSESSID appended to links causes invalud html.
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-59899@lists.php.net to get a copy of this message
ID: 12941 Comment by: lbruno at republico dot estv dot ipv dot pt dot invalid Reported By: loopyfx at yahoo dot com Status: Bogus Bug Type: Session related Operating System: Windows 2000 Adv Server PHP Version: 4.0.5 New Comment: Around here, it DOES work, you nay-sayers! It's 4.2.3 on RH9, btw. The PHP was hand-rolled, so there are no patches from the vendor. Previous Comments: ------------------------------------------------------------------------ [2002-01-17 05:14:00] barends at linuxnewbie dot nl I have the same problem with 4.0.6 (on apache and Linux). I did add the: arg_separator.output = "&amp;" rule to php.ini, but it still uses & instead of &amp; :( ------------------------------------------------------------------------ [2001-08-25 07:44:58] sniper@php.net Well, are you sure the php.ini file is even used by PHP? ie. is it on the right directory? This does work. At least on PHP 4.0.6 which you should be using too.. ------------------------------------------------------------------------ [2001-08-24 22:01:38] loopyfx at yahoo dot com I tried doing that, but it does the same thing still. Copied out of c:\winnt\php.ini: arg_separator.output = "&amp;" ------------------------------------------------------------------------ [2001-08-24 06:02:48] sniper@php.net Use this php.ini directive: arg_separator.output = "&amp;" ------------------------------------------------------------------------ [2001-08-24 04:43:17] loopyfx at yahoo dot com URI: http://loopy.2y.net/main.php Server: Microsoft-IIS/5.0 Character encoding: unknown Document type: HTML 4.01 Transitional Below are the results of attempting to parse this document with an SGML parser. Line 24, column 154: ... >*<a href="/programming/projects.asp?type=current&PHPSESSID=64076887e5 ... ^ Error: unknown entity "PHPSESSID" (explanation...) All you need to do is make "&PHPSESSID" be "&amp;PHPSESSID" (that is the html entity for & in the changed one, if it doesn't show up.) Thanks. -Harlan ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=12941&edit=1

« previous php.bugs (#59899) next »