Consider 'background' attribute as unsafe

When loading a message, background attributes will be disabled if the
user as chosen to not automatically load external images.

Fixes #2437
This commit is contained in:
Francis Lachapelle
2014-01-09 09:13:11 -05:00
parent d51e1da57f
commit d603a8672e
3 changed files with 29 additions and 44 deletions

View File

@@ -542,7 +542,8 @@ static NSData* _sanitizeContent(NSData *theData)
else
skipAttribute = YES;
}
else if (([name isEqualToString: @"data"]
else if ([name isEqualToString: @"background"] ||
([name isEqualToString: @"data"]
|| [name isEqualToString: @"classid"])
&& [lowerName isEqualToString: @"object"])
{