diff options
author | Andrew Dolgov <[email protected]> | 2018-02-12 09:37:31 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2018-02-12 09:37:31 +0300 |
commit | 3d7db21602bd61d3b6acd1fe0db0fad461faa18e (patch) | |
tree | 30950e70b67313b66fdadb0922b02511362aa4e9 /include | |
parent | 1aeb282be135f1f81a8ac7d55a6b0bc538166da5 (diff) | |
parent | 8babb8e75a0fd0195fc28c915bc5e21a7814f77b (diff) |
Merge branch 'master' of git.fakecake.org:tt-rss
Diffstat (limited to 'include')
-rwxr-xr-x | include/functions.php | 3 |
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'; |