summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-02-19 09:39:29 +0300
committerAndrew Dolgov <[email protected]>2016-02-19 09:39:29 +0300
commitd43b6563efac4d1c96e9a9751802fcef318318eb (patch)
tree52e3e95eec5d856a11f603e79c83e47a02374358 /include
parentcc43e19b44bd702be93c2244d1ae81a0cb14c69f (diff)
parentb501dc3c5a76b9b5888c596c9a5a2b6dbff478ca (diff)
Merge branch 'master' of git.tt-rss.org:fox/tt-rss
Diffstat (limited to 'include')
-rw-r--r--[-rwxr-xr-x]include/functions2.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/functions2.php b/include/functions2.php
index 7c714f564..ed22a0623 100755..100644
--- a/include/functions2.php
+++ b/include/functions2.php
@@ -912,6 +912,14 @@
if (file_exists($cached_filename)) {
$src = SELF_URL_PATH . '/public.php?op=cached_image&hash=' . sha1($src);
+
+ if ($entry->hasAttribute('srcset')) {
+ $entry->removeAttribute('srcset');
+ }
+
+ if ($entry->hasAttribute('sizes')) {
+ $entry->removeAttribute('sizes');
+ }
}
$entry->setAttribute('src', $src);