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
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: 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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 03:01:30 2024 UTC