Add missing escaping of ffmpeg shell command during video thumbnail generation
This commit is contained in:
parent
9f3bf7d2e1
commit
2ae760b62e
@ -111,7 +111,7 @@ class VideoFileHandler extends DataHandlerExtension {
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
$scale = 'scale="' . escapeshellarg("if(gt(a,{$w}/{$h}),{$w},-1)") . ':' . escapeshellarg("if(gt(a,{$w}/{$h}),-1,{$h})") . '"';
|
$scale = 'scale="' . escapeshellarg("if(gt(a,{$w}/{$h}),{$w},-1)") . ':' . escapeshellarg("if(gt(a,{$w}/{$h}),-1,{$h})") . '"';
|
||||||
$cmd = "{$ffmpeg} -y -i {$inname} -vf {$scale} -ss 00:00:00.0 -f image2 -vframes 1 {$outname}";
|
$cmd = escapeshellcmd("{$ffmpeg} -y -i {$inname} -vf {$scale} -ss 00:00:00.0 -f image2 -vframes 1 {$outname}");
|
||||||
}
|
}
|
||||||
|
|
||||||
exec($cmd, $output, $returnValue);
|
exec($cmd, $output, $returnValue);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user