Bug #15912 Updated: Trailing \r\n in last varible when doing POST request with IE
| From: | napolium at sudac dot org | Date: | Thu, 07 Mar 2002 12:00:39 +0000 |
| Subject: | Bug #15912 Updated: Trailing \r\n in last varible when doing POST request with IE | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-1911@lists.php.net to get a copy of this message | ||
ID: 15912
Updated by: napolium@sudac.org
-Summary: Trailing \r\n in last varible when doing POST request
with IE
Reported By: napolium@sudac.org
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] napolium@sudac.org
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