From 4d10f196e86eec79982bc58d00c17e114425bcc6 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 23 Oct 2018 11:19:51 +0200 Subject: [PATCH] make sure dropfolderdir doesn't contain double '/' --- views/bootstrap/class.DropFolderChooser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' */