mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-23 18:11:47 +02:00
[ticket/14039] Fix filesystem file updater's mkdir usage
PHPBB3-14039
This commit is contained in:
@@ -155,22 +155,7 @@ class file_updater implements file_updater_interface
|
|||||||
}
|
}
|
||||||
|
|
||||||
$path = str_replace(DIRECTORY_SEPARATOR, '/', $path);
|
$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
|
$this->filesystem->mkdir($path, 493); // 493 === 0755
|
||||||
$path .= '/';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user