Skip to content
This repository was archived by the owner on Nov 19, 2018. It is now read-only.
This repository was archived by the owner on Nov 19, 2018. It is now read-only.

Undefined index: headers endpoint.php line 109 #11

Open
@tychovbh

Description

@tychovbh

In endpoint.php on line 109 you can see the following code:
php $headersStr = $contentAsObject["headers"];

This key though "headers" doesn't exists. When I use the fineuploader library only "expiration" and "conditions" exists.

Somehow when I use this library for testing reasons, this doesn't trigger any errors and $headersStr will be null. But in a different implementation on production it triggers Undefined index: headers.

Can we fix this by checking the array for the header something like:

$headerStr = '';
if (isset($contentAsObject["headers"]) {
    $headerStr = $contentAsObject["headers"];
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions