php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22551 upload bug and altered files
Submitted: 2003-03-05 09:25 UTC Modified: 2003-03-05 11:22 UTC
From: cguillaume at cr-bourgogne dot fr Assigned:
Status: Not a bug Package: Apache2 related
PHP Version: 4.2.3 OS: redhat 8.0
Private report: No CVE-ID: None
 [2003-03-05 09:25 UTC] cguillaume at cr-bourgogne dot fr
if you add this line in your httpd.conf : 

AddType application/x-httpd-php .php4 .php3 .php

when you upload a file (size > 1ko)
you get an altered file into your php script 

this bug was tested on php 4.2.2 and 4.2.3 
on Apache/2.0.40 

thanks 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-05 10:02 UTC] moriyoshi@php.net
Is there any LimitRequestBody directive in your httpd.conf?

Try

$ grep "LimitRequestBody" < httpd.conf

 [2003-03-05 10:23 UTC] sniper@php.net
1. Update to PHP 4.3.1
2. Update to Apache 2.0.44
3. Search this bug database before submitting bug reports..

 [2003-03-05 10:42 UTC] cguillaume at cr-bourgone dot fr
moriyoshi : 
NOT any "LimitRequestBody"


sniper : 
yes i've seen your response "Update to PHP 4.3.1
and Update to Apache 2.0.44" at
http://bugs.php.net/bug.php?id=20963

but :
1) it's more easy to suppress this line 
into httpd.conf than all recompile .
so its a good bug report for php users.
 
2) are you sure that this bug option is 
really corrected on theses versions 
(perhaps by recompile and install apache + php 
you have just erased your httpd.conf and suppress 
the bad line option ... ) ? 

best regards
(im french so im not english expert)
 [2003-03-05 10:47 UTC] moriyoshi@php.net
Unfortunately I've never seen a *good* bug report yet.

Please read and follow the instruction mentioned in bug #18648

 [2003-03-05 11:15 UTC] cguillaume at cr-bourgogne dot fr
ok thanks ! mea culpa ! 

but ive could not found it with 
keywords "upload file". 

so if an other PHP user search with the
same keywords , he'll found it now ! ;o)

thanks for you help !!!
 [2003-03-05 11:22 UTC] moriyoshi@php.net
Keep the status as is please...

Actually a duplicate of bug #19263

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 01 16:01:31 2024 UTC