Added recursive limit check to renderAttachments method.

Integrates CL 149561 from p4 Docomo email.
Bug 1897000.
This commit is contained in:
Mihai Preda 2009-06-15 18:10:29 -07:00
parent a830816fe2
commit 075e9d5104

View File

@ -781,6 +781,9 @@ public class MessageView extends Activity
}
private void renderAttachments(Part part, int depth) throws MessagingException {
if (depth >= 10 || part == null) {
return;
}
String contentType = MimeUtility.unfoldAndDecode(part.getContentType());
String name = MimeUtility.getHeaderParameter(contentType, "name");
if (name != null) {