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
Description
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.