BF [ 1778381 ] EMailDialog bug in CC address tokenizer

This commit is contained in:
deathmeat 2007-08-21 08:17:22 +00:00
parent 9601efb8b9
commit 968b6bc3c1
1 changed files with 5 additions and 4 deletions

View File

@ -377,11 +377,12 @@ public class EMailDialog extends CDialog
email.addTo(st.nextToken());
// cc
StringTokenizer stcc = new StringTokenizer(getCc(), " ,;", false);
while (stcc.hasMoreTokens())
{
String cc = stcc.nextToken();
if (cc != null && cc.length() > 0)
email.addCc(cc);
while (stcc.hasMoreTokens())
email.addCc(stcc.nextToken());
}
// Attachment
if (m_attachFile != null && m_attachFile.exists())
email.addAttachment(m_attachFile);