From: Mikael Nordfeldth Date: Wed, 25 Feb 2015 00:37:57 +0000 (+0100) Subject: Only local files to be passed through VideoThumbnails X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=95b61a5e1212b5017d425f19a6a5ce08cd629ffc;p=quix0rs-gnu-social.git Only local files to be passed through VideoThumbnails --- 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; }