Added recursive limit check to renderAttachments method.
Integrates CL 149561 from p4 Docomo email. Bug 1897000.
This commit is contained in:
parent
a830816fe2
commit
075e9d5104
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user