]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix uploading files to the users root directory
authorRobin Appelman <icewind1991@gmail.com>
Sun, 21 Aug 2011 12:28:44 +0000 (14:28 +0200)
committerRobin Appelman <icewind1991@gmail.com>
Sun, 21 Aug 2011 12:28:44 +0000 (14:28 +0200)
files/ajax/upload.php

index 2c0afa33a7d05ccefda545a883576d3374ac6207..c642b0ded1cf8b2910d4a880c93a607583b6fe5d 100644 (file)
@@ -17,7 +17,7 @@ if( !OC_User::isLoggedIn()){
 $files=$_FILES['files'];
 
 $dir = $_POST['dir'];
-if(!empty($dir)) $dir .= '/';
+$dir .= '/';
 $error='';
 
 $totalSize=0;