mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
handle string parsing on own imap_rfc822_parse_adrlist ; improve on expectations, when string contains multiple rfc-addresses
This commit is contained in:
parent
40de690ae4
commit
ea8fb452b8
@ -102,7 +102,7 @@ if (!function_exists('imap_rfc822_parse_adrlist'))
|
|||||||
foreach(explode(',', $address) as $part)
|
foreach(explode(',', $address) as $part)
|
||||||
{
|
{
|
||||||
$trimmed = trim(($pending ? $pending.',' : '').$part);
|
$trimmed = trim(($pending ? $pending.',' : '').$part);
|
||||||
if ($trimmed[0] == '"' && substr($trimmed, -1) != '>')
|
if (($trimmed[0] == '"' && substr($trimmed, -1) != '>')||strpos($part, '@')===false)
|
||||||
{
|
{
|
||||||
$pending .= ($pending ? $pending.',' : '').$part;
|
$pending .= ($pending ? $pending.',' : '').$part;
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user