Only local files to be passed through VideoThumbnails

This commit is contained in:
Mikael Nordfeldth 2015-02-25 01:37:57 +01:00
parent 3bbb748a08
commit 95b61a5e12

View File

@ -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;
}