From ea2c64c9a6fbc22bffbac4e2e57ce0762f5e03ad Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 15 Sep 2026 18:13:53 +0200 Subject: feat(notifications): strip remote inline image sources A notification is untrusted input. Inline now renders only for local sources; an http(s) source is removed before the RichText body is shown, so a remote sender cannot make the shell fetch a URL. The row and the balloon share the one sanitizer in the Notify singleton. --- desktop/NotificationRow.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'desktop/NotificationRow.qml') diff --git a/desktop/NotificationRow.qml b/desktop/NotificationRow.qml index 04b0c0d..923cc9e 100644 --- a/desktop/NotificationRow.qml +++ b/desktop/NotificationRow.qml @@ -92,7 +92,7 @@ Rectangle { Text { width: parent.width visible: text !== "" - text: row.notification.body || "" + text: Notify.sanitize(row.notification.body) textFormat: Text.RichText wrapMode: Text.WordWrap maximumLineCount: 2 -- cgit v1.2.3