PHP 4.0 Bug #7854: trans-sid inserts "
| From: | hartmut at six dot de | Date: | Thu, 16 Nov 2000 19:02:58 +0000 |
| Subject: | PHP 4.0 Bug #7854: trans-sid inserts " | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38369@lists.php.net to get a copy of this message | ||
From: hartmut@six.de
Operating system: *
PHP version: 4.0 Latest CVS (16/11/2000)
PHP Bug Type: *Session related
Bug description: trans-sid inserts "
the transparent rewriter seems to miss-identify the following
javascript code as html?
sascha?
<?php
session_start();
session_register("i");
$i++;
?>
<html>
<head>
<script language="javascript">
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;
}
</script>
</head>
<body>
<a href="abc.php">hallo <?= $i ?></a>
</body>
</html>
becomes
<html>
<head>
<script language="javascript">
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;"
}
</script>
</head>
<body>
<a href="abc.php?PHPSESSID=05391ddf955070ea18e6cc2a44e9a9f2">hallo 1</a>
</body>
</html>
--
Edit Bug report at: http://bugs.php.net/?id=7854&edit=1