I suggest in the function getUploadDir (in incFunctions.php) the following change (untested code)
Code: Select all
function getUploadDir($dir = '') {
if($dir == '') $dir = config('adminConfig')['baseUploadPath'];
$dir = rtrim($dir, '\\/');
$dir = rtrim($dir, '\\');
$dir .= DIRECTORY_SEPARATOR
return $dir;
}
Why?
This code should produce a correct string for the operating system. PHP takes care of the wrong character (if used) but for our own string handling in own functions it would be easier to have the correct trailing character.
Olaf