summaryrefslogtreecommitdiff
path: root/posthandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'posthandler.php')
-rw-r--r--posthandler.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/posthandler.php b/posthandler.php
index f2f60291..639254e1 100644
--- a/posthandler.php
+++ b/posthandler.php
@@ -6,6 +6,7 @@ function postHandler($post) {
if ($post->has_file && $post->extension == 'webm') {
require_once dirname(__FILE__) . '/videodata.php';
$videoDetails = videoData($post->file_path);
+ if (!isset($videoDetails['container']) || $videoDetails['container'] != 'webm') return "not a WebM file";
// Set thumbnail
$thumbName = $board['dir'] . $config['dir']['thumb'] . $post->file_id . '.webm';