Browse Source

Merge branch 'master' of git.fakecake.org:tt-rss

Andrew Dolgov 1 year ago
parent
commit
3d7db21602
1 changed files with 3 additions and 0 deletions
  1. 3 0
      include/functions.php

+ 3 - 0
include/functions.php

@@ -1596,6 +1596,9 @@
 			if ($entry->nodeName == 'img') {
 				$entry->setAttribute('referrerpolicy', 'no-referrer');
 
+				$entry->removeAttribute('width');
+				$entry->removeAttribute('height');
+
 				if ($entry->hasAttribute('src')) {
 					$is_https_url = parse_url($entry->getAttribute('src'), PHP_URL_SCHEME) === 'https';