fix(security): strip all HTML tags from $.notify alert messages (#4716)

This commit is contained in:
jekkos authored and GitHub committed 2026-09-29 13:19:10 +02:00
1 parent 9cafea0eed
commit 5d56c2cecd
1 file changed
+1 -1
+1 -1
View File
@@ -21,7 +21,7 @@
$.notify = function(content, options) {
const message = typeof content === "object" ? content.message : content;
const sanitizedMessage = DOMPurify.sanitize(message);
const sanitizedMessage = DOMPurify.sanitize(message, { ALLOWED_TAGS: [], ALLOWED_ATTR: [] });
return notify(sanitizedMessage, options);
};