From b7077e74de2ac978e232ac4ffd666c754ab698bb Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Fri, 10 Feb 2012 10:42:33 +0000 Subject: [PATCH] Monotone-Parent: 6abb8375831082425cff443adae2a3a663f43a6d Monotone-Revision: 8b85752325ab90167923684643ea6fe0374ee7a1 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2012-02-10T10:42:33 --- ChangeLog | 6 ++++++ UI/MailPartViewers/UIxMailPartHTMLViewer.m | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 9ca24252f..b609e1943 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-02-10 Wolfgang Sourdeau + + * UI/MailPartViewers/UIxMailPartHTMLViewer.m (+): added all simple + tag to "VoidTags", based on list from + http://www.w3.org/TR/html4/index/elements.html. + 2012-02-10 Francis Lachapelle * UI/WebServerResources/generic.js (openMailTo): recipients are diff --git a/UI/MailPartViewers/UIxMailPartHTMLViewer.m b/UI/MailPartViewers/UIxMailPartHTMLViewer.m index c0fb7f161..35921b0a9 100644 --- a/UI/MailPartViewers/UIxMailPartHTMLViewer.m +++ b/UI/MailPartViewers/UIxMailPartHTMLViewer.m @@ -236,7 +236,13 @@ static NSData* _sanitizeContent(NSData *theData) @"frame", @"iframe", @"applet", @"link", @"base", @"meta", @"title", nil]; if (!VoidTags) - VoidTags = [[NSArray alloc] initWithObjects: @"br", @"hr", nil]; + { + /* see http://www.w3.org/TR/html4/index/elements.html */ + VoidTags = [[NSArray alloc] initWithObjects: @"area", @"base", + @"basefont", @"br", @"col", @"frame", @"hr", + @"img", @"input", @"isindex", @"link", + @"meta", @"param", @"", nil]; + } } - (id) init