1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-02-24 23:12:55 +00:00

Whitelist a/href protocols

This commit is contained in:
M66B 2020-06-21 18:00:33 +02:00
parent 5d09584190
commit 1a18a5f95c

View file

@ -456,7 +456,8 @@ public class HtmlHelper {
.removeAttributes("th", "colspan", "rowspan", "width")
.addProtocols("img", "src", "cid")
.addProtocols("img", "src", "data")
.addProtocols("a", "href", "full");
.addProtocols("a", "href", "full",
"rtsp", "ftp", "telnet", "ssh", "sftp", "fish", "xmpp", "geo", "tel");
if (text_color)
whitelist.addAttributes("font", "color");
if (text_align)