commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgoes...@apache.org
Subject svn commit: r1050178 - /commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java
Date Thu, 16 Dec 2010 21:50:02 GMT
Author: sgoeschl
Date: Thu Dec 16 21:50:01 2010
New Revision: 1050178

URL: http://svn.apache.org/viewvc?rev=1050178&view=rev
Log:
[EMAIL-102] fixing HtmlEmail embed toLowerCase bug when using Turkish locale

Modified:
    commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java

Modified: commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java
URL: http://svn.apache.org/viewvc/commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java?rev=1050178&r1=1050177&r2=1050178&view=diff
==============================================================================
--- commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java (original)
+++ commons/proper/email/trunk/src/java/org/apache/commons/mail/HtmlEmail.java Thu Dec 16
21:50:01 2010
@@ -24,6 +24,7 @@ import java.net.URL;
 import java.util.HashMap;
 import java.util.Iterator;
 import java.util.List;
+import java.util.Locale;
 import java.util.Map;
 
 import javax.activation.DataHandler;
@@ -321,7 +322,7 @@ public class HtmlEmail extends MultiPart
      */
     public String embed(File file) throws EmailException
     {
-        String cid = EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH).toLowerCase();
+        String cid = EmailUtils.randomAlphabetic(HtmlEmail.CID_LENGTH).toLowerCase(Locale.ENGLISH);
         return embed(file, cid);
     }
 



Mime
View raw message