From e21e3fc8cbcd08e9314ae394bfe669bac74dcdf1 Mon Sep 17 00:00:00 2001 From: M66B Date: Fri, 5 Mar 2021 13:48:16 +0100 Subject: [PATCH] Allow all link protocols --- app/src/main/java/eu/faircode/email/HtmlHelper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/HtmlHelper.java b/app/src/main/java/eu/faircode/email/HtmlHelper.java index 9e39cc390a..45dcf918c6 100644 --- a/app/src/main/java/eu/faircode/email/HtmlHelper.java +++ b/app/src/main/java/eu/faircode/email/HtmlHelper.java @@ -434,8 +434,7 @@ public class HtmlHelper { .removeAttributes("th", "colspan", "rowspan", "width") .addProtocols("img", "src", "cid") .addProtocols("img", "src", "data") - .removeProtocols("a", "href", "ftp") - .addProtocols("a", "href", "full", "xmpp", "geo", "tel"); + .removeTags("a").addAttributes("a", "href", "title"); if (text_color) whitelist.addAttributes("font", "color"); if (text_size)