1
0
mirror of https://github.com/axllent/mailpit.git synced 2025-07-05 00:48:52 +02:00

Chore: Allow unknown href link protocols in HTML view such as myapp:// (#532)

This commit is contained in:
Ralph Slooten
2025-07-01 08:01:09 +12:00
parent 8634c9e8f2
commit 2d1fb7cf14

View File

@ -107,11 +107,12 @@ export default {
"vspace", "vspace",
"xml:lang", "xml:lang",
], ],
FORBID_ATTR: ["script"], FORBID_ATTR: ["script"], // all JavaScript should be removed
ALLOW_UNKNOWN_PROTOCOLS: true, // allow link href protocols like myapp:// etc
}); });
// for debugging // for debugging
// this.debugDOMPurify(DOMPurify.removed) // this.debugDOMPurify(DOMPurify.removed);
return clean; return clean;
}, },