From 12f8cec2e7e2ae217e5a8731eaffa39c0cae344b Mon Sep 17 00:00:00 2001 From: steckbrief Date: Tue, 20 Sep 2016 12:00:07 +0200 Subject: Using explicit flags while creating new directories instead of relying on default flags --- include/template.class.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/template.class.php b/include/template.class.php index b8846a561..7a2d91222 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -94,7 +94,7 @@ class Template if (!isset($conf['data_dir_checked'])) { $dir = PHPWG_ROOT_PATH.$conf['data_location']; - mkgetdir($dir, MKGETDIR_DEFAULT&~MKGETDIR_DIE_ON_ERROR); + mkgetdir($dir, MKGETDIR_RECURSIVE | MKGETDIR_PROTECT_INDEX); if (!is_writable($dir)) { load_language('admin.lang'); @@ -1923,7 +1923,7 @@ final class FileCombiner $output .= "\n"; } $output = "/*BEGIN header */\n" . $header . "\n" . $output; - mkgetdir( dirname(PHPWG_ROOT_PATH.$file) ); + mkgetdir( dirname(PHPWG_ROOT_PATH.$file), MKGETDIR_RECURSIVE | MKGETDIR_DIE_ON_ERROR | MKGETDIR_PROTECT_INDEX ); file_put_contents( PHPWG_ROOT_PATH.$file, $output ); @chmod(PHPWG_ROOT_PATH.$file, 0644); } -- cgit v1.2.3