summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;