PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » HTTP » HTTP_Upload » Bug #834

undefined index CONTENT_TYPE

Details

Submitted2004-02-23 01:46 UTC
Frommaka3d at yahoo dot com dot br
Assignedantonio
StatusClosed
PackageHTTP_Upload
PHP Version4.3.4
OSirrelevant
Roadmaps(Not assigned)

Comments

[2004-02-23 01:46 UTC] maka3d at yahoo dot com dot br

Description:
------------
at line 251, a notice raise if index CONTENT_TYPE doesn't exist, what happens in my server

when no post was sent.

Replace the follow line:

$this->content_type = $HTTP_SERVER_VARS['CONTENT_TYPE'];

for this:

if( isset($_SERVER['CONTENT_TYPE']) )
$this->content_type = $_SERVER['CONTENT_TYPE'];

and change too the old vector for $_SERVER