PHP 4.0 Bug #9147: bugs in post using multipart/form-data
| From: | hwlee at phys dot chungbuk dot ac dot kr | Date: | Wed, 07 Feb 2001 14:42:08 +0000 |
| Subject: | PHP 4.0 Bug #9147: bugs in post using multipart/form-data | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45946@lists.php.net to get a copy of this message | ||
From: hwlee@phys.chungbuk.ac.kr
Operating system: RH Linux 7.0
PHP version: 4.0.4pl1
PHP Bug Type: Unknown/Other Function
Bug 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 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
--
Edit Bug report at: http://bugs.php.net/?id=9147&edit=1