make sure dropfolderdir doesn't contain double '/'

This commit is contained in:
Uwe Steinmann 2018-10-23 11:19:51 +02:00
parent c5778b2d44
commit 4d10f196e8

View File

@ -64,7 +64,7 @@ $('.folderselect').click(function(ev) {
$c = 0; // count files $c = 0; // count files
$filecontent = ''; $filecontent = '';
$dir = $dropfolderdir.'/'.$user->getLogin(); $dir = rtrim($dropfolderdir, '/').'/'.$user->getLogin();
/* Check if we are still looking in the configured directory and /* Check if we are still looking in the configured directory and
* not somewhere else, e.g. if the login was '../test' * not somewhere else, e.g. if the login was '../test'
*/ */