Fix proc_open error
This commit is contained in:
parent
37034552e4
commit
4ad326a9af
@ -351,7 +351,7 @@ class PluginController extends Base
|
|||||||
protected function getUnzipCmd($zip_file, $extract_to)
|
protected function getUnzipCmd($zip_file, $extract_to)
|
||||||
{
|
{
|
||||||
if ($cmd = $this->findCmd('unzip')) {
|
if ($cmd = $this->findCmd('unzip')) {
|
||||||
$cmd = "$cmd -qq $zip_file -d $extract_to";
|
$cmd = "$cmd -o -qq $zip_file -d $extract_to";
|
||||||
} else if ($cmd = $this->findCmd('7z')) {
|
} else if ($cmd = $this->findCmd('7z')) {
|
||||||
$cmd = "$cmd x -bb0 -y $zip_file -o$extract_to";
|
$cmd = "$cmd x -bb0 -y $zip_file -o$extract_to";
|
||||||
} else if ($cmd = $this->findCmd('7zz')) {
|
} else if ($cmd = $this->findCmd('7zz')) {
|
||||||
@ -369,8 +369,8 @@ class PluginController extends Base
|
|||||||
protected function unzipWithCmd($cmd)
|
protected function unzipWithCmd($cmd)
|
||||||
{
|
{
|
||||||
$desc = [
|
$desc = [
|
||||||
0 => STDIN,
|
0 => ["pipe", "r"],
|
||||||
1 => STDOUT,
|
1 => ["pipe", "w"],
|
||||||
2 => ["pipe", "w"],
|
2 => ["pipe", "w"],
|
||||||
];
|
];
|
||||||
$handler = proc_open($cmd, $desc, $pipes);
|
$handler = proc_open($cmd, $desc, $pipes);
|
||||||
|
Loading…
Reference in New Issue
Block a user