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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Tue May 07 11:01:31 2024 UTC