MDL-40642 set more restrictive umask and use proper permission for new dirs and files
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user