aboutsummaryrefslogtreecommitdiffstats
path: root/files/ajax/upload.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind1991@gmail.com>2011-08-21 14:28:44 +0200
committerRobin Appelman <icewind1991@gmail.com>2011-08-21 14:28:44 +0200
commit043e62ffd9f1485f77e714403c1610c064c794ba (patch)
tree4471e74c37f7cedc50729b3984f7930db7164229 /files/ajax/upload.php
parent3f8e4e2a302622ecb84b989f0f9d24f76419c3fe (diff)
downloadnextcloud-server-043e62ffd9f1485f77e714403c1610c064c794ba.tar.gz
nextcloud-server-043e62ffd9f1485f77e714403c1610c064c794ba.zip
fix uploading files to the users root directory
Diffstat (limited to 'files/ajax/upload.php')
-rw-r--r--files/ajax/upload.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/files/ajax/upload.php b/files/ajax/upload.php
index 2c0afa33a7d..c642b0ded1c 100644
--- a/files/ajax/upload.php
+++ b/files/ajax/upload.php
@@ -17,7 +17,7 @@ if( !OC_User::isLoggedIn()){
$files=$_FILES['files'];
$dir = $_POST['dir'];
-if(!empty($dir)) $dir .= '/';
+$dir .= '/';
$error='';
$totalSize=0;