mirror of
https://github.com/moparisthebest/mail
synced 2025-02-07 02:20:14 -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) {
|
||||
// remove http leaks
|
||||
document.body.innerHTML = DOMPurify.sanitize(html, {
|
||||
FORBID_TAGS: ['style', 'svg', 'audio', 'video'],
|
||||
FORBID_TAGS: ['style', 'svg', 'audio', 'video', 'math'],
|
||||
FORBID_ATTR: ['src']
|
||||
});
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user