diff options
author | Andrew Dolgov <[email protected]> | 2017-02-04 11:50:01 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2017-02-04 11:50:01 +0300 |
commit | 5edd605ae1a9269b8b6b91b587da3d54a35424e9 (patch) | |
tree | 80a6354dc99e4652b1cd6ee988d2c9b7f6cc7137 /plugins | |
parent | 0442cbb6c16e22cf172ade58d675c1e2001646d1 (diff) |
image cache: do not try to cache data: schema urls; add caching of html5 video content (similar to cache_starred_images plugin)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/cache_starred_images/init.php | 3 |
1 files changed, 2 insertions, 1 deletions
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')); |