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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: korjenevsky at cplire dot ru
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC