mirror of
https://github.com/Studio-42/elFinder
synced 2026-06-08 12:37:09 +00:00
fix zip command test
"zip --version" dose not work on Zip 2.32 (June 19th 2006). "zip -v" work fine on Zip 2.32 (June 19th 2006) and Zip 3.0 (July 5th 2008).
This commit is contained in:
@@ -603,7 +603,7 @@ class elFinderVolumeLocalFileSystem extends elFinderVolumeDriver {
|
||||
}
|
||||
unset($o);
|
||||
//exec('zip --version', $o, $c);
|
||||
$this->procExec('zip --version', $o, $c);
|
||||
$this->procExec('zip -v', $o, $c);
|
||||
if ($c == 0) {
|
||||
$arcs['create']['application/zip'] = array('cmd' => 'zip', 'argc' => '-r9', 'ext' => 'zip');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user