diff --git a/core/trunk/core/docservers_tools.php b/core/trunk/core/docservers_tools.php index 79fe8a324d0a0b780a4415e4a0c9f76a1309a1fb..9d2538e1f74ba34ab3e5acf33adada2d129758bc 100644 --- a/core/trunk/core/docservers_tools.php +++ b/core/trunk/core/docservers_tools.php @@ -199,14 +199,14 @@ function Ds_extractArchive($fileInfos, $fingerprintMode) . escapeshellarg($fileNameOnTmp) . ' ' . escapeshellarg($fileNameOnTmp); } else { - $command = '\'' + $command = '"' . str_replace( '\\', '\\\\', $_SESSION['docserversFeatures']['DOCSERVERS'] ['PATHTOCOMPRESSTOOL'] ) - . '\' x -y -o' . escapeshellarg($tmp . $tmpArchive) + . '" x -y -o' . escapeshellarg($tmp . $tmpArchive) . ' ' . escapeshellarg($fileNameOnTmp) . ' ' . escapeshellarg($fileNameOnTmp); } @@ -220,14 +220,14 @@ function Ds_extractArchive($fileInfos, $fingerprintMode) . escapeshellarg($tmp . $tmpArchive) . ' ' . escapeshellarg($fileNameOnTmp); } else { - $command = '\'' + $command = '"' . str_replace( '\\', '\\\\', $_SESSION['docserversFeatures']['DOCSERVERS'] ['PATHTOCOMPRESSTOOL'] ) - . '\' x -y -o' + . '" x -y -o' . escapeshellarg($tmp . $tmpArchive) . ' ' . escapeshellarg($fileNameOnTmp); } @@ -298,7 +298,7 @@ function Ds_extractArchive($fileInfos, $fingerprintMode) ) . ' ' .$fileInfos['offset_doc']; } else { - $commandBis = '\'' + $commandBis = '"' . str_replace( '\\', '\\\\', @@ -307,7 +307,7 @@ function Ds_extractArchive($fileInfos, $fingerprintMode) ['DOCSERVERS'] ['PATHTOCOMPRESSTOOL'] ) - . '\' x -y -o' + . '" x -y -o' . escapeshellarg( $tmp . $tmpArchive . DIRECTORY_SEPARATOR @@ -323,6 +323,7 @@ function Ds_extractArchive($fileInfos, $fingerprintMode) } $tmpCmd = ''; exec($commandBis, $tmpCmd, $execError); + //echo $commandBis;exit; if ($execError > 0) { $result = array( 'status' => 'ko',