Skip to content

Commit

Permalink
Fix #15752 - use DIRECTORY_SEPARATOR instead of slash
Browse files Browse the repository at this point in the history
Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
williamdes committed Jan 6, 2020
1 parent 21c2bcd commit 4129e16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/classes/Config.php
Expand Up @@ -1673,7 +1673,7 @@ public function getTempDir(string $name): ?string
if (empty($path)) {
$path = null;
} else {
$path = rtrim($path, '/') . '/' . $name;
$path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR . $name;
if (! @is_dir($path)) {
@mkdir($path, 0770, true);
}
Expand Down

0 comments on commit 4129e16

Please sign in to comment.