diff --git a/include/functions.php b/include/functions.php index 183552437..9dd84707b 100755 --- a/include/functions.php +++ b/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';