Author: hansbak
Date: Sat Sep 23 21:42:24 2006
New Revision: 449357
URL:
http://svn.apache.org/viewvc?view=rev&rev=449357Log:
fixed: index out of bound error when receiving email signed with pgp
Modified:
incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java
Modified: incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java
URL:
http://svn.apache.org/viewvc/incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java?view=diff&rev=449357&r1=449356&r2=449357==============================================================================
--- incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java (original)
+++ incubator/ofbiz/trunk/applications/content/src/org/ofbiz/content/email/EmailWorker.java Sat Sep 23 21:42:24 2006
@@ -69,6 +69,7 @@
Part part = multipart.getBodyPart(i);
String thisContentTypeRaw = part.getContentType();
int idx2 = thisContentTypeRaw.indexOf(";");
+ if (idx2 == -1) idx2 = thisContentTypeRaw.length();
String thisContentType = thisContentTypeRaw.substring(0, idx2);
String disposition = part.getDisposition();