From 043e62ffd9f1485f77e714403c1610c064c794ba Mon Sep 17 00:00:00 2001
From: Robin Appelman <icewind1991@gmail.com>
Date: Sun, 21 Aug 2011 14:28:44 +0200
Subject: [PATCH] fix uploading files to the users root directory

---
 files/ajax/upload.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/files/ajax/upload.php b/files/ajax/upload.php
index 2c0afa33a7..c642b0ded1 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;
-- 
GitLab