From dd8580632765c051ea68b877ce608ca69b5655fe Mon Sep 17 00:00:00 2001 From: Mate Bartus Date: Sun, 18 Oct 2015 14:00:53 +0200 Subject: [ticket/14039] Fix filesystem file updater's mkdir usage PHPBB3-14039 --- .../phpbb/install/helper/file_updater/file_updater.php | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) (limited to 'phpBB/phpbb/install/helper/file_updater/file_updater.php') diff --git a/phpBB/phpbb/install/helper/file_updater/file_updater.php b/phpBB/phpbb/install/helper/file_updater/file_updater.php index 8ebbf64253..00cb0d17bd 100644 --- a/phpBB/phpbb/install/helper/file_updater/file_updater.php +++ b/phpBB/phpbb/install/helper/file_updater/file_updater.php @@ -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 } /** -- cgit v1.2.1