php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7704 trouble using session.use_trans_sid and javascirpt
Submitted: 2000-11-08 20:29 UTC Modified: 2000-11-15 20:29 UTC
From: executorf at gmx dot de Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.3pl1 OS: all
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: executorf at gmx dot de
New email:
PHP Version: OS:

 

 [2000-11-08 20:29 UTC] executorf at gmx dot de
when using session.use_trans_sid and the client does not allow cookies the javascript code of the page is changed.
example:

normal code:
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
...
//-->

code when parsed with SID:
<!--
function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x="a[i])&&x.oSrc;i++)" x.src="x.oSrc;
"
}
//-->

ok, you see that four "s where added!
so the javascript is useless and the page causes an error.

greetings,

steve

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-08 16:17 UTC] sniper@php.net
Fixed already.

--Jani
 [2000-11-08 16:17 UTC] sniper@php.net
Fixed already in CVS I mean. The fix will be in PHP4.0.4.

--Jani
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sun Oct 11 16:00:02 2026 UTC