mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-25 20:44:01 +01:00
[ticket/14039] Fix filesystem file updater's mkdir usage
PHPBB3-14039
This commit is contained in:
parent
74ae7d2a8d
commit
dd85806327
@ -155,22 +155,7 @@ class file_updater implements file_updater_interface
|
||||
}
|
||||
|
||||
$path = str_replace(DIRECTORY_SEPARATOR, '/', $path);
|
||||
$dirs = explode('/', $path);
|
||||
$dirs_to_create = array();
|
||||
|
||||
do
|
||||
{
|
||||
$path .= '../';
|
||||
$dirs_to_create[] = array_pop($dirs);
|
||||
}
|
||||
while (!is_dir($path));
|
||||
|
||||
foreach ($dirs_to_create as $directory)
|
||||
{
|
||||
$path .= $directory;
|
||||
$this->filesystem->mkdir($path, 493); // 493 === 0755
|
||||
$path .= '/';
|
||||
}
|
||||
$this->filesystem->mkdir($path, 493); // 493 === 0755
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user