Skip to content
This repository was archived by the owner on Sep 20, 2021. It is now read-only.
This repository was archived by the owner on Sep 20, 2021. It is now read-only.

Undefined offset: 1 when parse garbage HTTP header #29

@vmanyushin

Description

@vmanyushin

When HTTP header is not valid, this line

Http/Http.php

Line 139 in 6d3e114

list($name, $value) = explode(':', $header, 2);
produce Undefined offset: 1

Can you add something like this

if(stripos($header, ':')) {
    list($name, $value)                = explode(':', $header, 2);
    $this->_headers[strtolower($name)] = trim($value);
}

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions