From 9c65aeb157fe16ab5a651f39c92902440f2d5344 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 15 Sep 2026 18:20:33 +0200 Subject: fix(notifications): check every img src and uncache preview The sanitizer matched the first \bsrc anywhere in the tag, so a data-src="file:///tmp/decoy" before a remote src won the match and kept the whole tag while Qt, which ignores data-src, fetched the remote image. Scan every src assignment in the tag and keep it only if all of them are local. Also set cache: false on the balloon preview, since the daemon overwrites the same path on a replace and QQuickPixmapCache keys on URL, so a replaced notification could show the previous image. --- notifications/NotificationBalloon.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'notifications') diff --git a/notifications/NotificationBalloon.qml b/notifications/NotificationBalloon.qml index bfccda3..49ec0b4 100644 --- a/notifications/NotificationBalloon.qml +++ b/notifications/NotificationBalloon.qml @@ -155,5 +155,6 @@ Rectangle { source: visible ? "file://" + b.notification.image : "" fillMode: Image.PreserveAspectFit asynchronous: true + cache: false } } -- cgit v1.2.3