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:
commit
50a24d5e95
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue