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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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: Tue Apr 23 18:01:34 2024 UTC