diff options
author | Meik Sievertsen <acydburn@phpbb.com> | 2008-08-16 19:06:18 +0000 |
---|---|---|
committer | Meik Sievertsen <acydburn@phpbb.com> | 2008-08-16 19:06:18 +0000 |
commit | 068096531f297d188afea88190cd838ccae662cb (patch) | |
tree | 7109437c35b6fefaf83525969afbb720e314e9c6 /phpBB/includes/acm/acm_file.php | |
parent | da65cd13974a42fe5a551a0b66cb3f3a6db6dcf4 (diff) | |
download | forums-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/acm/acm_file.php')
-rw-r--r-- | phpBB/includes/acm/acm_file.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php index 8462febdcf..6a5d19bc1c 100644 --- a/phpBB/includes/acm/acm_file.php +++ b/phpBB/includes/acm/acm_file.php @@ -93,7 +93,7 @@ class acm @flock($fp, LOCK_UN); fclose($fp); - @chmod($this->cache_dir . 'data_global.' . $phpEx, 0666); + phpbb_chmod($this->cache_dir . 'data_global.' . $phpEx, 'rwrite'); } else { @@ -197,7 +197,7 @@ class acm @flock($fp, LOCK_UN); fclose($fp); - @chmod($this->cache_dir . "data{$var_name}.$phpEx", 0666); + phpbb_chmod($this->cache_dir . "data{$var_name}.$phpEx", 'rwrite'); } } else @@ -416,7 +416,7 @@ class acm @flock($fp, LOCK_UN); fclose($fp); - @chmod($filename, 0666); + phpbb_chmod($filename, 'rwrite'); $query_result = $query_id; } |