From 9b8617d33fb95a33bab0e9468e796b12a9982158 Mon Sep 17 00:00:00 2001 From: cketti Date: Thu, 4 Jan 2018 05:07:41 +0100 Subject: [PATCH] Add attributes for 'font' tag to the whitelist --- k9mail/src/main/java/com/fsck/k9/message/html/HtmlSanitizer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/k9mail/src/main/java/com/fsck/k9/message/html/HtmlSanitizer.java b/k9mail/src/main/java/com/fsck/k9/message/html/HtmlSanitizer.java index edb4eb972..ae2d81c45 100644 --- a/k9mail/src/main/java/com/fsck/k9/message/html/HtmlSanitizer.java +++ b/k9mail/src/main/java/com/fsck/k9/message/html/HtmlSanitizer.java @@ -14,6 +14,7 @@ public class HtmlSanitizer { HtmlSanitizer() { Whitelist whitelist = Whitelist.relaxed() .addTags("font", "hr", "ins", "del") + .addAttributes("font", "color", "face", "size") .addAttributes("table", "align", "background", "bgcolor", "border", "cellpadding", "cellspacing", "width") .addAttributes("tr", "align", "bgcolor", "valign")