ID:               22577
 User updated by:  mreuter at gmx dot de
 Reported By:      mreuter at gmx dot de
-Status:           Bogus
+Status:           Open
 Bug Type:         Session related
 Operating System: Linux
 PHP Version:      4.2.3
 New Comment:

Hi again,
it is a bug with php!!
php tries to put " around the first word after the first = inside an
area tag, no matter if it is inside a Javascript command or not. This
leads as in my example to broken code. It only happens when using
session.
I just found a workaround. One can split the String passed to
document.writeln after the first = in area like this:
... area shape="+"\"rect\">...
and php will not put new " characters.

Still it is a bug.


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

[2003-03-06 16:43:02] [EMAIL PROTECTED]

Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

Sorry, but this issue should be sent to the php.general newslist (if in
fact there is a PHP error, which i sincerely doubt).. Otherwise, this
is an HTML issue, and bears no dependencies with PHP.

~ Andrew Heebner

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

[2003-03-06 16:37:44] mreuter at gmx dot de

Hi,
after creating a new session with use_trans_sid enabled, php messes up
my javascript area tag.
Here is a shortend test file:

<?php session_start();?>
<html>
<head>
<title>Testseite</title>
<script type="text/javascript">
<!--
  document.writeln("<map name=\"Mmap\"><area shape=\"rect\"></map>");
//-->
</script>
</head>
<body>
<a href="next.php"> next </a>
</body>
</html>

The document.writeln is changed to:

document.writeln("<map name=\"Mmap\"><area shape="\""rect\"></map>");

with the "\"" instead of \" it produces errors.

Since I cannot update to a newer Php, a workaround would be very
helpful.

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


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

Reply via email to