Browse Source

Added escapeshellarg() for WebM thumbnail generation.

pull/40/head
Ian Bradley 10 years ago
parent
commit
306f4ef46b
  1. 4
      inc/lib/webm/ffmpeg.php

4
inc/lib/webm/ffmpeg.php

@ -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();

Loading…
Cancel
Save