mirror of
https://github.com/moparisthebest/mail
synced 2025-02-11 20:50:10 -05:00
Add <math> html tag to DOMpurity backlist to prevent HTTP leaks
This commit is contained in:
parent
898e19e3ea
commit
0dc04e659f
@ -24,7 +24,7 @@ window.onmessage = function(e) {
|
|||||||
if (e.data.removeImages) {
|
if (e.data.removeImages) {
|
||||||
// remove http leaks
|
// remove http leaks
|
||||||
document.body.innerHTML = DOMPurify.sanitize(html, {
|
document.body.innerHTML = DOMPurify.sanitize(html, {
|
||||||
FORBID_TAGS: ['style', 'svg', 'audio', 'video'],
|
FORBID_TAGS: ['style', 'svg', 'audio', 'video', 'math'],
|
||||||
FORBID_ATTR: ['src']
|
FORBID_ATTR: ['src']
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user