Skip to content
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.

A logical bug occurs while splitting header field #40

Open
@akmandev

Description

@akmandev

According to https://tools.ietf.org/html/rfc5322, the following email address example is completely ok:

"Some Name" <[email protected]>

But when you pass this value to Zend\Mime\Decoder::splitHeaderField(); it returns a wrong value because of a logical bug in the code (Line #181, the condition is not correct for all cases):

Expected results

"Some Name" <[email protected]>

Actual results

"Some Name" <[email protected]

So, in the actual result, the last character is missing.


I would like to create a merge request with valid tests if you think this should be fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions