mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
Merge branch 'pr/34'
This commit is contained in:
commit
db8b4ed21e
613 changed files with 18898 additions and 7319 deletions
|
@ -1118,7 +1118,7 @@ class UploadHandler
|
|||
$file->size > $this->get_file_size($file_path);
|
||||
if ($uploaded_file && is_uploaded_file($uploaded_file) && strpos($file_path, "'")===false && strpos($file_path, '"')===false) {
|
||||
chmod($uploaded_file, 0644);
|
||||
exec (VESTA_CMD . "v-copy-fs-file ". USERNAME ." {$uploaded_file} '{$file_path}'", $output, $return_var);
|
||||
exec (VESTA_CMD . "v-copy-fs-file ". USERNAME ." ".$uploaded_file." ".escapeshellarg($file_path), $output, $return_var);
|
||||
$error = check_return_code($return_var, $output);
|
||||
if ($return_var != 0) {
|
||||
$file->error = 'Error while saving file ';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue