MDL-40642 set more restrictive umask and use proper permission for new dirs and files

This commit is contained in:
Petr Škoda
2013-07-19 09:18:44 +02:00
parent ffc3f5308b
commit eb459f7192
25 changed files with 52 additions and 15 deletions
+1
View File
@@ -2205,6 +2205,7 @@ class available_update_deployer {
if (!file_exists($filepath)) {
$success = file_put_contents($filepath, $password . PHP_EOL . $now . PHP_EOL, LOCK_EX);
chmod($filepath, $CFG->filepermissions);
}
}