1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

feat(sanitizer): consider images of size 0x0 as pixel trackers

This commit is contained in:
jvoisin 2025-06-17 22:47:12 +02:00 committed by Frédéric Guillot
parent 72486b9bd1
commit 152ef578d2

View file

@ -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