From 152ef578d220c62e6b3923693a54b83aeb462a10 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 17 Jun 2025 22:47:12 +0200 Subject: [PATCH] feat(sanitizer): consider images of size 0x0 as pixel trackers --- internal/reader/sanitizer/sanitizer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/reader/sanitizer/sanitizer.go b/internal/reader/sanitizer/sanitizer.go index 41191e2f..7db80ee4 100644 --- a/internal/reader/sanitizer/sanitizer.go +++ b/internal/reader/sanitizer/sanitizer.go @@ -440,7 +440,7 @@ func isPixelTracker(tagName string, attributes []html.Attribute) bool { hasWidth := false for _, attribute := range attributes { - if attribute.Val == "1" { + if attribute.Val == "1" || attribute.Val == "0" { switch attribute.Key { case "height": hasHeight = true