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

This commit is contained in:
Andrew Dolgov 2018-02-12 09:37:31 +03:00
commit 3d7db21602

View file

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