geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jboy...@apache.org
Subject svn commit: r154004 - geronimo/trunk/specs/javamail/src/java/javax/mail/internet/InternetHeaders.java
Date Wed, 16 Feb 2005 07:12:17 GMT
Author: jboynes
Date: Tue Feb 15 23:12:15 2005
New Revision: 154004

URL: http://svn.apache.org/viewcvs?view=rev&rev=154004
Log:
fix CCE when reading headers

Modified:
    geronimo/trunk/specs/javamail/src/java/javax/mail/internet/InternetHeaders.java

Modified: geronimo/trunk/specs/javamail/src/java/javax/mail/internet/InternetHeaders.java
URL: http://svn.apache.org/viewcvs/geronimo/trunk/specs/javamail/src/java/javax/mail/internet/InternetHeaders.java?view=diff&r1=154003&r2=154004
==============================================================================
--- geronimo/trunk/specs/javamail/src/java/javax/mail/internet/InternetHeaders.java (original)
+++ geronimo/trunk/specs/javamail/src/java/javax/mail/internet/InternetHeaders.java Tue Feb
15 23:12:15 2005
@@ -248,8 +248,8 @@
             return null;
         }
         for (Iterator i = headers.iterator(); i.hasNext();) {
-            String header = (String) i.next();
-            InternetAddress.parseHeader(addrs, header, strict, true);
+            InternetHeader header = (InternetHeader) i.next();
+            InternetAddress.parseHeader(addrs, header.getValue(), strict, true);
         }
         return (InternetAddress[]) addrs.toArray(new InternetAddress[addrs.size()]);
     }



Mime
View raw message