diff --git a/libraries/classes/Config.php b/libraries/classes/Config.php index 4ba9cbdb9a0a..3ddb793e1a6a 100644 --- a/libraries/classes/Config.php +++ b/libraries/classes/Config.php @@ -1673,7 +1673,7 @@ public function getTempDir(string $name): ?string if (empty($path)) { $path = null; } else { - $path .= '/' . $name; + $path = rtrim($path, '/') . '/' . $name; if (! @is_dir($path)) { @mkdir($path, 0770, true); }