php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9677 file uploads corrupted
Submitted: 2001-03-10 23:54 UTC Modified: 2001-03-11 00:14 UTC
From: carl at maiatech dot com Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.4pl1 OS: redhat linux 7
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: carl at maiatech dot com
New email:
PHP Version: OS:

 

 [2001-03-10 23:54 UTC] carl at maiatech dot com
Since version 4.0.4pl1, files uploaded with the POST method are corrupted. They contain two extra lines at the top for a content/type header and and extra line.

I have worked a jury-rigged fix, by fgets-ing twice to pop off the top two lines, then fgets-ing hte rest into a new file.

Of course, when this bug is fixed, I'll have to go and "unfix" all my scripts that use that jury rigged workaround.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-03-11 00:14 UTC] sniper@php.net
This is fixed in CVS. Try latest CVS snapshot from
http://snaps.php.net/

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 14:01:29 2024 UTC