Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

Commit

Permalink
Update library/Zend/Mail/Header/AbstractAddressList.php
Browse files Browse the repository at this point in the history
because

[ErrorException]                                                             
  Notice: Undefined offset: 1 in vendor/zendframe  
  work/zendframework/library/Zend/Mail/Header/AbstractAddressList.php line 46
  • Loading branch information
axzx committed Feb 15, 2013
1 parent 2a51b16 commit 86c28ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Zend/Mail/Header/AbstractAddressList.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ public static function fromString($headerLine)
{
$decodedLine = iconv_mime_decode($headerLine, ICONV_MIME_DECODE_CONTINUE_ON_ERROR, 'UTF-8');
// split into name/value
list($fieldName, $fieldValue) = explode(': ', $decodedLine, 2);
list($fieldName, $fieldValue) = explode(':', $decodedLine, 2);
$fieldName = \trim($fieldName);
$fieldValue = \trim($fieldValue);

if (strtolower($fieldName) !== static::$type) {
throw new Exception\InvalidArgumentException(sprintf(
Expand Down

0 comments on commit 86c28ab

Please sign in to comment.