Whitelist a/href protocols

pull/182/head
M66B 5 years ago
parent 5d09584190
commit 1a18a5f95c

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

Loading…
Cancel
Save