Ver código fonte

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

jvoisin 1 ano atrás
pai
commit
152ef578d2
1 arquivos alterados com 1 adições e 1 exclusões
  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