ID: 15912
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: HTTP related
Operating System: Linux
PHP Version: 4.0CVS-2002-03-0
New Comment:
Tried the CVS version of today (20002-03-27) and the bug is still
there. But I think it only happens when useing thttpd as SAPI. There is
some code in sapi/thttpd/thttpd.c around line 195 that is suppose to
fixit.
Previous Comments:
------------------------------------------------------------------------
[2002-03-07 17:21:09] [EMAIL PROTECTED]
The CVS version from yesterday (2002-03-06)
------------------------------------------------------------------------
[2002-03-07 14:29:04] [EMAIL PROTECTED]
In what version it didn't work?
------------------------------------------------------------------------
[2002-03-07 09:40:47] [EMAIL PROTECTED]
PHP 4.1.2 seams to handle it correctly
------------------------------------------------------------------------
[2002-03-07 09:36:02] [EMAIL PROTECTED]
Changed category to HTTP related
------------------------------------------------------------------------
[2002-03-07 07:00:37] [EMAIL PROTECTED]
I seams like PHP does not care about the Content-length sent by the
browser when decoding POST requests. And IE seams to add a trailing
\r\n
at the end of the POST string that is not included in the
Content-length.
Exmaple code:
<html>
<?php
echo "a=".urlencode($_POST["a"])."<br>";
echo "b=".urlencode($_POST["b"])."<br>";
?>
<form action="test2.php" method="post">
a:<input type="text" name="a"><br>
b:<input type="text" name="b"><br>
<input type="submit">
</form>
</html>
Posting "foo" in a and "bar" i b results in this output in IE:
a=foo
b=bar%0D%0A
and in Mozilla:
a=foo
b=bar
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/15912
--
Edit this bug report at http://bugs.php.net/?id=15912&edit=1