]> git.wh0rd.org - tt-rss.git/commitdiff
Merge branch 'master' of git.fakecake.org:tt-rss
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 12 Feb 2018 06:37:31 +0000 (09:37 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 12 Feb 2018 06:37:31 +0000 (09:37 +0300)
include/functions.php

index 1835524374473575991ab4bfecb5669fd2c55ea4..9dd84707bc446836cc4cda0dd3c54049e8a00722 100755 (executable)
                        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';