aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorsteckbrief <steckbrief@chefmail.de>2016-09-20 12:00:07 +0200
committersteckbrief <steckbrief@chefmail.de>2016-09-20 12:00:07 +0200
commit12f8cec2e7e2ae217e5a8731eaffa39c0cae344b (patch)
tree4ce64e3722953de4c6b6615eeb74e29f33a850a1 /include
parentbe3ad3bd19e921a287ee832f8f02ce96c5d09801 (diff)
Using explicit flags while creating new directories instead of relying on default flagsimprove_access_control
Diffstat (limited to 'include')
-rw-r--r--include/template.class.php4
1 files 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);
}