1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-12 10:00:49 +01:00

Added escapeshellarg() for WebM thumbnail generation.

This commit is contained in:
Ian Bradley 2014-09-15 16:57:06 -07:00
parent 0a9de3deb5
commit 306f4ef46b

View File

@ -49,6 +49,10 @@ function is_valid_webm($ffprobe_out) {
function make_webm_thumbnail($filename, $thumbnail, $width, $height) {
global $board, $config;
$filename = escapeshellarg($filename);
$thumbnail = escapeshellarg($thumbnail); // Should be safe by default but you
// can never be too safe.
$ffmpeg = $config['webm']['ffmpeg_path'];
$ffmpeg_out = array();