commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ep...@apache.org
Subject cvs commit: jakarta-commons-sandbox/email/src/java/org/apache/commons/mail HtmlEmail.java
Date Thu, 28 Oct 2004 18:48:39 GMT
epugh       2004/10/28 11:48:39

  Modified:    email/src/java/org/apache/commons/mail HtmlEmail.java
  Log:
  Hopefully last part of 30634
  	  	[email] Issue with cid URLs generated by .embed(...) in HtmlEmail.java
  
  Revision  Changes    Path
  1.12      +2 -2      jakarta-commons-sandbox/email/src/java/org/apache/commons/mail/HtmlEmail.java
  
  Index: HtmlEmail.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons-sandbox/email/src/java/org/apache/commons/mail/HtmlEmail.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- HtmlEmail.java	27 Oct 2004 09:58:58 -0000	1.11
  +++ HtmlEmail.java	28 Oct 2004 18:48:39 -0000	1.12
  @@ -164,7 +164,7 @@
           mbp.setDataHandler(new DataHandler(new URLDataSource(url)));
           mbp.setFileName(name);
           mbp.setDisposition("inline");
  -        String cid = RandomStringUtils.randomAscii(HtmlEmail.CID_LENGTH);
  +        String cid = RandomStringUtils.randomAlphabetic(HtmlEmail.CID_LENGTH).toLowerCase();
           mbp.addHeader("Content-ID","<"+ cid +">");
   
           this.inlineImages.add(mbp);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message