From e9357cadf85dc69718ec3c8ab564ad2fac7ed765 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 677fc218..f518cd51 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