aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acp/acp_attachments.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2008-08-16 19:06:18 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2008-08-16 19:06:18 +0000
commit068096531f297d188afea88190cd838ccae662cb (patch)
tree7109437c35b6fefaf83525969afbb720e314e9c6 /phpBB/includes/acp/acp_attachments.php
parentda65cd13974a42fe5a551a0b66cb3f3a6db6dcf4 (diff)
downloadforums-068096531f297d188afea88190cd838ccae662cb.tar
forums-068096531f297d188afea88190cd838ccae662cb.tar.gz
forums-068096531f297d188afea88190cd838ccae662cb.tar.bz2
forums-068096531f297d188afea88190cd838ccae662cb.tar.xz
forums-068096531f297d188afea88190cd838ccae662cb.zip
the chmod change i already had within the changelog (by mistake). This should further secure writable directories and created files.
Installation need to be tested on different hosts. git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8763 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acp/acp_attachments.php')
-rw-r--r--phpBB/includes/acp/acp_attachments.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acp/acp_attachments.php b/phpBB/includes/acp/acp_attachments.php
index 4e8a8ef719..3b937c6597 100644
--- a/phpBB/includes/acp/acp_attachments.php
+++ b/phpBB/includes/acp/acp_attachments.php
@@ -279,7 +279,7 @@ class acp_attachments
{
$l_explain = (isset($user->lang[$vars['lang'] . '_EXPLAIN'])) ? $user->lang[$vars['lang'] . '_EXPLAIN'] : '';
}
-
+
$content = build_cfg_template($type, $config_key, $this->new_config, $config_key, $vars);
if (empty($content))
{
@@ -1196,7 +1196,7 @@ class acp_attachments
if (!file_exists($phpbb_root_path . $upload_dir))
{
@mkdir($phpbb_root_path . $upload_dir, 0777);
- @chmod($phpbb_root_path . $upload_dir, 0777);
+ phpbb_chmod($phpbb_root_path . $upload_dir, 'rwrite');
}
}