diff options
author | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-20 12:36:20 -0400 |
---|---|---|
committer | Michael Gapczynski <GapczynskiM@gmail.com> | 2011-08-20 12:36:20 -0400 |
commit | ceae4fa7b45db51313cb78fd7441e8b3e99221f9 (patch) | |
tree | 386ab2e8d1d2e0846761ed6ab9fcc2cfcb613bbe /files | |
parent | b05be2f26d9f4d75e22839eb440b9fddaea14eb4 (diff) | |
download | nextcloud-server-ceae4fa7b45db51313cb78fd7441e8b3e99221f9.tar.gz nextcloud-server-ceae4fa7b45db51313cb78fd7441e8b3e99221f9.zip |
Fix bugs preventing file upload in shared folders with write permission
Diffstat (limited to 'files')
-rw-r--r-- | files/ajax/upload.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ajax/upload.php b/files/ajax/upload.php index 4247aeca283..2c0afa33a7d 100644 --- a/files/ajax/upload.php +++ b/files/ajax/upload.php @@ -33,7 +33,7 @@ $result=array(); if(strpos($dir,'..') === false){ $fileCount=count($files['name']); for($i=0;$i<$fileCount;$i++){ - $target='/' . stripslashes($dir) . $files['name'][$i]; + $target=stripslashes($dir) . $files['name'][$i]; if(OC_Filesystem::fromUploadedFile($files['tmp_name'][$i],$target)){ $result[]=array( "status" => "success", 'mime'=>OC_Filesystem::getMimeType($target),'size'=>OC_Filesystem::filesize($target),'name'=>$files['name'][$i]); } |