PHP 4.0 Bug #9147 Updated: bugs in post using multipart/form-data
| From: | hwlee at phys dot chungbuk dot ac dot kr | Date: | Thu, 08 Feb 2001 01:47:51 +0000 |
| Subject: | PHP 4.0 Bug #9147 Updated: bugs in post using multipart/form-data | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-46007@lists.php.net to get a copy of this message | ||
ID: 9147
User Update by: hwlee@phys.chungbuk.ac.kr
Status: Open
Bug Type: Unknown/Other Function
Description: bugs in post using multipart/form-data
Hello!
I installed "php-4.0.4pl1-3.i386.rpm" which
can be obtained from "ftp://updates.redhat.com".
When one tries to send variables using multipart form,
one always get strings with additional CR LF
characters at the front.
Below I enclose two short files.
Please try them.
--- a.html ------
<form method=post enctype="multipart/form-data" action="b.php">
Data:<input name=aa value="00000">
</form>
--- b.php -------
<?
$aahex = bin2hex($aa) ;
echo "$aahex";
?>
------------------
When I submit the form (a.html) with
Data = 00000, I get "0d0a3030303030".
Here I can see extra CR LF ("0d0a").
When I used older version ( 4.0.3),
I didn't experience such things.
Thank you.
Haewon Lee
Physics Dept.
Chunbuk Nat'l Univ., Korea
Previous Comments:
---------------------------------------------------------------------------
[2001-02-07 09:42:08] hwlee@phys.chungbuk.ac.kr
Hello!
I installed "php-4.0.4pl1-3.i386.rpm" which
can be obtained from "ftp://updates.redhat.com".
When one try to send variables using multipart form,
one always get strings with additional CR LF
characters at the front.
Below I enclose two short files.
Please try them.
--- a.html ------
<form method=post enctype="multipart/form-data" action="b.php">
Data:<input name=aa value="00000">
</form>
--- b.php -------
<?
$aahex = bin2hex($aa) ;
echo "$aahex";
?>
------------------
Where I submit the form (a.html) with
Data = 00000, I get "0d0a3030303030".
Here I can see extra CR LF ("0d0a").
When I used older version ( 4.0.3),
I didn't experience such things.
Thank you.
Haewon Lee
Physics Dept.
Chunbuk Nat'l Univ., Korea
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=9147