fix(mail): don't open XML attachments in browser

This commit is contained in:
Francis Lachapelle
2021-11-01 10:06:49 -04:00
parent 6eb5e97154
commit d54dca9a1b

View File

@@ -341,7 +341,7 @@
NSMutableString *url;
st = [[bodyInfo valueForKey:@"subtype"] lowercaseString];
if (!forDownload && [st isEqualToString: @"svg+xml"])
if (!forDownload && [st hasSuffix: @"xml"])
return nil;
bodyPart = [self clientPart];