From 968b6bc3c17b65fdb202dffc51410ddeee62afe8 Mon Sep 17 00:00:00 2001 From: deathmeat Date: Tue, 21 Aug 2007 08:17:22 +0000 Subject: [PATCH] BF [ 1778381 ] EMailDialog bug in CC address tokenizer --- client/src/org/compiere/apps/EMailDialog.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/client/src/org/compiere/apps/EMailDialog.java b/client/src/org/compiere/apps/EMailDialog.java index b9fa002d3c..36325f786c 100644 --- a/client/src/org/compiere/apps/EMailDialog.java +++ b/client/src/org/compiere/apps/EMailDialog.java @@ -377,11 +377,12 @@ public class EMailDialog extends CDialog email.addTo(st.nextToken()); // cc StringTokenizer stcc = new StringTokenizer(getCc(), " ,;", false); - String cc = stcc.nextToken(); - if (cc != null && cc.length() > 0) - email.addCc(cc); while (stcc.hasMoreTokens()) - email.addCc(stcc.nextToken()); + { + String cc = stcc.nextToken(); + if (cc != null && cc.length() > 0) + email.addCc(cc); + } // Attachment if (m_attachFile != null && m_attachFile.exists()) email.addAttachment(m_attachFile);