mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 17:13:23 +02:00
Whitelist a/href protocols
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user