1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-25 15:32:52 +00:00

Sanitize EML html

This commit is contained in:
M66B 2019-02-06 18:00:44 +00:00
parent 48fbfb5842
commit 08b31cabe2

View file

@ -93,7 +93,8 @@ public class ActivityEml extends ActivityBase {
}
result.parts = Html.fromHtml(sb.toString());
result.body = Html.fromHtml(parts.getHtml(context));
String html = HtmlHelper.sanitize(parts.getHtml(context), true);
result.body = Html.fromHtml(html);
ByteArrayOutputStream bos = new ByteArrayOutputStream();
mmessage.writeTo(bos);