From c992878dd9504e7a1d3d5d286eccf1afded1e9e6 Mon Sep 17 00:00:00 2001 From: bartbutenaers Date: Wed, 11 Dec 2024 16:24:27 +0100 Subject: [PATCH] typo in comment --- ui/src/widgets/ui-notification/UINotification.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/src/widgets/ui-notification/UINotification.vue b/ui/src/widgets/ui-notification/UINotification.vue index 39b5bf3d..da058990 100644 --- a/ui/src/widgets/ui-notification/UINotification.vue +++ b/ui/src/widgets/ui-notification/UINotification.vue @@ -64,7 +64,7 @@ export default { const value = this.messages[this.id]?.payload // Sanetize the html to avoid XSS attacks. - // Allow 'script' tags to allow styling of the notification content. + // Allow 'style' tags to allow styling of the notification content. // The FORCE_BODY is required to avoid 'style' tags (at the start of the value string) still being skipped. const sanetizedValue = DOMPurify.sanitize(value, { ADD_TAGS: ['style'], FORCE_BODY: true }) return sanetizedValue