]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Only local files to be passed through VideoThumbnails
authorMikael Nordfeldth <mmn@hethane.se>
Wed, 25 Feb 2015 00:37:57 +0000 (01:37 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Wed, 25 Feb 2015 00:37:57 +0000 (01:37 +0100)
plugins/VideoThumbnails/VideoThumbnailsPlugin.php

index 758164923d6720175494ed4cf8fe1b71cc30b665..3cdf07478e662f3ea2026a08feeddbd9aac8eb7c 100644 (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;
         }