summaryrefslogtreecommitdiff
path: root/include/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2018-02-12 09:37:31 +0300
committerAndrew Dolgov <[email protected]>2018-02-12 09:37:31 +0300
commit3d7db21602bd61d3b6acd1fe0db0fad461faa18e (patch)
tree30950e70b67313b66fdadb0922b02511362aa4e9 /include/functions.php
parent1aeb282be135f1f81a8ac7d55a6b0bc538166da5 (diff)
parent8babb8e75a0fd0195fc28c915bc5e21a7814f77b (diff)
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'include/functions.php')
-rwxr-xr-xinclude/functions.php3
1 files changed, 3 insertions, 0 deletions
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';