Commit 88082609 authored by Pegane Nestor's avatar Pegane Nestor
Browse files

FIX #6180 use cp command with exec function

parent 25da9a56
......@@ -50,7 +50,9 @@ if (!$Class_Install->createPath($path)) {
exit;
}
if (!$Class_Install->copy_dir($_SESSION['config']['corepath'], $path . DIRECTORY_SEPARATOR)) {
$cmd = "cp -R ".$_SESSION['config']['corepath']." ".$path . DIRECTORY_SEPARATOR;
if (exec($cmd)) {
$return['status'] = 0;
$return['text'] = _CAN_NOT_COPY_TO . ':' . $path;
......@@ -59,5 +61,6 @@ if (!$Class_Install->copy_dir($_SESSION['config']['corepath'], $path . DIRECTORY
echo $jsonReturn;
exit;
}
echo '{"status":1}';
exit;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment