Bug #15912 Updated: Trailing \r\n in last varible when doing POST request with IE
| From: | napolium at sudac dot org | Date: | Wed, 27 Mar 2002 18:33:27 +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-3504@lists.php.net to get a copy of this message | ||
ID: 15912
Updated by: napolium@sudac.org
Reported By: napolium@sudac.org
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] napolium@sudac.org
The CVS version from yesterday (2002-03-06)
------------------------------------------------------------------------
[2002-03-07 14:29:04] sniper@php.net
In what version it didn't work?
------------------------------------------------------------------------
[2002-03-07 09:40:47] napolium@sudac.org
PHP 4.1.2 seams to handle it correctly
------------------------------------------------------------------------
[2002-03-07 09:36:02] napolium@sudac.org
Changed category to HTTP related
------------------------------------------------------------------------
[2002-03-07 07:00:37] 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.
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