php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11066 In the uploaded binary file all zero bytes are replaced by 0x20 (32)
Submitted: 2001-05-23 17:40 UTC Modified: 2001-05-27 05:11 UTC
From: korjenevsky at cplire dot ru Assigned:
Status: Closed Package: HTTP related
PHP Version: 4.0.4pl1 OS: FreeBSD 4.0-RELEASE #6
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
19 + 16 = ?
Subscribe to this entry?

 
 [2001-05-23 17:40 UTC] korjenevsky at cplire dot ru
Configure command:
'./configure' '--with-apache=../apache_1.3.14rusPL30.1' '--enable-track-vars'

All default values in php.ini file.

Sample script:

<html><body>
<?
if(!isset($inputfile)){
$script=basename($PHP_SELF);
?>	
<FORM ENCTYPE="multipart/form-data" ACTION="<?=$script?>" METHOD=POST>
<INPUT TYPE="hidden" name="MAX_FILE_SIZE" value="300000">
<INPUT NAME="inputfile" TYPE="file">
<INPUT TYPE="submit" VALUE="Submit!">
</FORM>
<?
}
else{
move_uploaded_file($inputfile,"./uploaded.file");
echo "File is uploaded!";
}
?>
</body></html>

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-27 05:11 UTC] korjenevsky at cplire dot ru
The problem has been solved by adding line "CharsetRecodeMultipartForm off" to the httpd.conf file. This is the feature of particular Apache version. 

Alexander

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 07:01:29 2024 UTC