am 075e9d51: Added recursive limit check to renderAttachments method.

Merge commit '075e9d5104c0e23a6188677f5c9e99fcbcfdbc60'

* commit '075e9d5104c0e23a6188677f5c9e99fcbcfdbc60':
  Added recursive limit check to renderAttachments method.
This commit is contained in:
Mihai Preda 2009-06-16 16:42:49 -07:00 committed by The Android Open Source Project
commit 50a24d5e95
1 changed files with 3 additions and 0 deletions

View File

@ -795,6 +795,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) {