php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2521 file corrupting when file uploading.
Submitted: 1999-10-14 04:37 UTC Modified: 1999-10-19 01:44 UTC
From: avryabov at mail dot ru Assigned:
Status: Closed Package: Other
PHP Version: 3.0.12 OS: Linux
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: avryabov at mail dot ru
New email:
PHP Version: OS:

 

 [1999-10-14 04:37 UTC] avryabov at mail dot ru
allways corrupting next file: (3 bytes)
----begin
%a1
----end
to
----begin
%A1
----end
character "a" changed to "A"
type of script:
----begin
<html>
<?PHP
	if(isset($Newfile_size)) {
		echo "New!";
		unlink("/tmp/test4");
		rename($Newfile,"/tmp/test4");
	}
?>
<FORM ACTION=a.php3 METHOD=POST ENCTYPE="multipart/form-data">
<input type=file name=Newfile size=60>
<INPUT TYPE=Submit VALUE='Go'>
</form>
</html>
----end
php.ini is not installed.
php configured as:
./configure  --with-apache=../apache_1.3.9rusPL28.20 --with-mysql=/usr2/mysql --with-mod_charset --with-imap --with-pgsql=/usr2/pgsql

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-10-18 02:56 UTC] avryabov at mail dot ru
corrupting any character from 'a' to 'f'
 [1999-10-18 05:46 UTC] avryabov at mail dot ru
corrupting any character from 'a' to 'f'
 [1999-10-19 01:44 UTC] avryabov at mail dot ru
Sorry, it not PHP bug.
Russian Apahche require
---
CharsetRecodeMultipartForms Off 
---
even for only english character.

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jan 05 02:01:28 2025 UTC