mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Update UploadHandler.php
This commit is contained in:
parent
019a039588
commit
37d370390a
1 changed files with 1 additions and 1 deletions
|
@ -1116,7 +1116,7 @@ class UploadHandler
|
|||
$file_path = $this->get_upload_path($file->name);
|
||||
$append_file = $content_range && is_file($file_path) &&
|
||||
$file->size > $this->get_file_size($file_path);
|
||||
if ($uploaded_file && is_uploaded_file($uploaded_file)) {
|
||||
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);
|
||||
$error = check_return_code($return_var, $output);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue