From 95b61a5e1212b5017d425f19a6a5ce08cd629ffc Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Wed, 25 Feb 2015 01:37:57 +0100 Subject: [PATCH] Only local files to be passed through VideoThumbnails --- plugins/VideoThumbnails/VideoThumbnailsPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php index 758164923d..3cdf07478e 100644 --- a/plugins/VideoThumbnails/VideoThumbnailsPlugin.php +++ b/plugins/VideoThumbnails/VideoThumbnailsPlugin.php @@ -51,7 +51,7 @@ class VideoThumbnailsPlugin extends Plugin { // The calling function might accidentally pass application/ogg videos. // If that's a problem, let's fix it in the calling function. - if ($media !== 'video') { + if ($media !== 'video' || empty($file->filename)) { return true; }