ID:               20968
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Bogus
+Status:           Open
 Bug Type:         Session related
 Operating System: Windows 2000
 PHP Version:      4.2.3
 New Comment:

The javascript is generated code from a product by a dll.  I have no
access to modifying the html.

The only workaround I have is to not use trans sid.  But then clients
without cookies cannot access it.  

I do not believe this behavior is intentional.

Charles


Previous Comments:
------------------------------------------------------------------------

[2002-12-13 03:02:01] [EMAIL PROTECTED]

Use single quotes in your script. Not a bug.


------------------------------------------------------------------------

[2002-12-12 12:29:44] [EMAIL PROTECTED]

The cvs behaves differently but still the same error

str += "<form name=reptoc><input type="hidden" name="PHPSESSID"
value="some value" />";

It doesnt put quotes around the reptoc but it still puts bad quotes
around the type="hidden" and others.

Charles

------------------------------------------------------------------------

[2002-12-12 11:49:02] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-latest.zip

------------------------------------------------------------------------

[2002-12-12 11:42:10] [EMAIL PROTECTED]

Whe html is written with javascript and trans sid is used,  The
javascript may get messed up.

ie 
<script LANGUAGE=JavaScript1.2>
    str += "<form name=reptoc>";
</script>
becomes
<script LANGUAGE=JavaScript1.2>
    str += "<form name="reptoc"><input type="hidden" name="PHPSESSID"
value="some value" />";
</script>

This produces a parse error because the quotes are breaking the
string.

Thanks
Charles Killmer

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20968&edit=1

Reply via email to