Don't allow loading of configuration if there is no write permission on config.
This commit is contained in:
@@ -879,6 +879,10 @@ switch ($action) {
|
||||
fclose($config);
|
||||
break;
|
||||
case 'load':
|
||||
if ($fail_dir) {
|
||||
message('error', 'Reading of configuration disabled because of permissions.');
|
||||
break;
|
||||
}
|
||||
$bck_cfg = $cfg;
|
||||
unset($cfg);
|
||||
$config_file = '../config/config.inc.php';
|
||||
|
Reference in New Issue
Block a user