Skip to content

Commit

Permalink
remove duplicate slash for tempdir path
Browse files Browse the repository at this point in the history
Co-authored-by: bepsvpt <og7lsrszah6y3lz@infinitefa.email>

Signed-off-by: William Desportes <williamdes@wdes.fr>
  • Loading branch information
bepsvpt authored and williamdes committed Jan 6, 2020
1 parent bd808c8 commit 0706677
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 .= '/' . $name;
$path = rtrim($path, '/') . '/' . $name;
if (! @is_dir($path)) {
@mkdir($path, 0770, true);
}
Expand Down

0 comments on commit 0706677

Please sign in to comment.