Skip to content

Commit

Permalink
fix(mail): don't open XML attachments in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
cgx committed Nov 1, 2021
1 parent 6eb5e97 commit d54dca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UI/MailPartViewers/UIxMailPartViewer.m
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ - (NSString *) _pathForAttachmentOrDownload: (BOOL) forDownload
NSMutableString *url;

st = [[bodyInfo valueForKey:@"subtype"] lowercaseString];
if (!forDownload && [st isEqualToString: @"svg+xml"])
if (!forDownload && [st hasSuffix: @"xml"])
return nil;

bodyPart = [self clientPart];
Expand Down

0 comments on commit d54dca9

Please sign in to comment.