diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-12 13:54:56 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2010-03-12 13:54:56 +0000 |
| commit | 34703823f08443bd6a1e7d01d2f7cdf58cd1387b (patch) | |
| tree | abe41825b2924075e9a1215be1dfcfae30963a12 /roundcubemail/program/include/rcube_smtp.php | |
| parent | 40c69682392b7b0aece37bd3fb5826d981dc6c32 (diff) | |
- fixes for proper handling of email addresses with form: "user"@domain.tld
git-svn-id: https://svn.roundcube.net/trunk@3358 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/program/include/rcube_smtp.php')
| -rw-r--r-- | roundcubemail/program/include/rcube_smtp.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/roundcubemail/program/include/rcube_smtp.php b/roundcubemail/program/include/rcube_smtp.php index 658e4760c..1dfe222d5 100644 --- a/roundcubemail/program/include/rcube_smtp.php +++ b/roundcubemail/program/include/rcube_smtp.php @@ -392,14 +392,14 @@ class rcube_smtp { $addresses = array(); $recipients = rcube_explode_quoted_string(',', $recipients); - + reset($recipients); while (list($k, $recipient) = each($recipients)) { $a = explode(" ", $recipient); while (list($k2, $word) = each($a)) { - if ((strpos($word, "@") > 0) && (strpos($word, "\"")===false)) + if (strpos($word, "@") > 0 && $word[strlen($word)-1] != '"') { $word = preg_replace('/^<|>$/', '', trim($word)); if (in_array($word, $addresses)===false) @@ -411,5 +411,3 @@ class rcube_smtp { } } - -?> |
