diff options
author | alecpl <alec@alec.pl> | 2010-03-12 13:54:56 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2010-03-12 13:54:56 +0000 |
commit | b579f42b550a5c3f3bf11a0cee13149d67c1bcd8 (patch) | |
tree | 68d13b189b796353cc51803c6d6aaa04b34b73c1 /program/include/rcube_smtp.php | |
parent | b9d751df60a8f0126848a976b6c045a790ee36eb (diff) |
- fixes for proper handling of email addresses with form: "user"@domain.tld
Diffstat (limited to 'program/include/rcube_smtp.php')
-rw-r--r-- | program/include/rcube_smtp.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/program/include/rcube_smtp.php b/program/include/rcube_smtp.php index 658e4760c..1dfe222d5 100644 --- a/program/include/rcube_smtp.php +++ b/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 { } } - -?> |