Escape shell args
This commit is contained in:
parent
b534d7a8a8
commit
644ad9de63
1 changed files with 2 additions and 2 deletions
|
|
@ -38,7 +38,7 @@ class FFProbe extends Binary
|
||||||
throw new InvalidArgumentException($pathfile);
|
throw new InvalidArgumentException($pathfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
$cmd = $this->binary . ' ' . $pathfile . ' -show_format';
|
$cmd = $this->binary . ' ' . escapeshellarg($pathfile) . ' -show_format';
|
||||||
|
|
||||||
$output = $this->executeProbe($cmd);
|
$output = $this->executeProbe($cmd);
|
||||||
|
|
||||||
|
|
@ -84,7 +84,7 @@ class FFProbe extends Binary
|
||||||
throw new InvalidArgumentException($pathfile);
|
throw new InvalidArgumentException($pathfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
$cmd = $this->binary . ' ' . $pathfile . ' -show_streams';
|
$cmd = $this->binary . ' ' . escapeshellarg($pathfile) . ' -show_streams';
|
||||||
|
|
||||||
$output = explode("\n", $this->executeProbe($cmd));
|
$output = explode("\n", $this->executeProbe($cmd));
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue