Просмотр исходного кода

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

jvoisin 1 год назад
Родитель
Сommit
152ef578d2
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      internal/reader/sanitizer/sanitizer.go

+ 1 - 1
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