diff --git a/views/bootstrap/class.DropFolderChooser.php b/views/bootstrap/class.DropFolderChooser.php index 2c9243064..887f77711 100644 --- a/views/bootstrap/class.DropFolderChooser.php +++ b/views/bootstrap/class.DropFolderChooser.php @@ -64,7 +64,7 @@ $('.folderselect').click(function(ev) { $c = 0; // count files $filecontent = ''; - $dir = $dropfolderdir.'/'.$user->getLogin(); + $dir = rtrim($dropfolderdir, '/').'/'.$user->getLogin(); /* Check if we are still looking in the configured directory and * not somewhere else, e.g. if the login was '../test' */