ID:               15912
 Updated by:       [EMAIL PROTECTED]
-Summary:          Trailing \r\n in last varible when doing POST request
                   with IE
 Reported By:      [EMAIL PROTECTED]
 Status:           Open
 Bug Type:         URL related
 Operating System: Linux
-PHP Version:      4.0CVS-2002-03-06
+PHP Version:      4.0CVS-2002-03-0
 New Comment:

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


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

[2002-03-06 14:37:38] [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.


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


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

Reply via email to