summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorczaks <marcin@6irc.net>2015-08-11 03:46:02 +0200
committerczaks <marcin@6irc.net>2015-08-11 03:46:02 +0200
commitccd00c497c7465f14f7b259469ad287524e6b33a (patch)
tree8f8cd2c8d7fc01e74e67df5e87aeda0f16ebdeb7
parentea5ad66a1960f1acb65ba6f516f4afce7fd9456f (diff)
a stricter check for webm processing
-rw-r--r--inc/lib/webm/ffmpeg.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/inc/lib/webm/ffmpeg.php b/inc/lib/webm/ffmpeg.php
index faf90608..0747b420 100644
--- a/inc/lib/webm/ffmpeg.php
+++ b/inc/lib/webm/ffmpeg.php
@@ -45,6 +45,8 @@ function make_webm_thumbnail($filename, $thumbnail, $width, $height, $duration)
$filename = escapeshellarg($filename);
$thumbnailfc = escapeshellarg($thumbnail); // Should be safe by default but you
// can never be too safe.
+ $width = escapeshellarg($width);
+ $height = escapeshellarg($height); // Same as above.
$ffmpeg = $config['webm']['ffmpeg_path'];
$ret = 0;
$ffmpeg_out = array();