From:             mreuter at gmx dot de
Operating system: Linux
PHP version:      4.2.3
PHP Bug Type:     Session related
Bug description:  url rewrite messes up Javascript area tag

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 bug report at http://bugs.php.net/?id=22577&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22577&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22577&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22577&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22577&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22577&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22577&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22577&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22577&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22577&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22577&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22577&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22577&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22577&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22577&r=gnused

Reply via email to