From 5edd605ae1a9269b8b6b91b587da3d54a35424e9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sat, 4 Feb 2017 11:50:01 +0300 Subject: image cache: do not try to cache data: schema urls; add caching of html5 video content (similar to cache_starred_images plugin) --- plugins/cache_starred_images/init.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/cache_starred_images') diff --git a/plugins/cache_starred_images/init.php b/plugins/cache_starred_images/init.php index 63637bfd8..de627fc77 100644 --- a/plugins/cache_starred_images/init.php +++ b/plugins/cache_starred_images/init.php @@ -180,7 +180,8 @@ class Cache_Starred_Images extends Plugin implements IHandler { foreach ($entries as $entry) { - if ($entry->hasAttribute('src')) { + if ($entry->hasAttribute('src') && strpos($entry->getAttribute('src'), "data:") !== 0) { + $has_images = true; $src = rewrite_relative_url($site_url, $entry->getAttribute('src')); -- cgit v1.2.3-54-g00ecf