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:
parent
5d09584190
commit
1a18a5f95c
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue