Don't allow loading of configuration if there is no write permission on config.

This commit is contained in:
Michal Čihař
2005-11-28 08:48:05 +00:00
parent 39384a2df2
commit ce62964438
2 changed files with 8 additions and 0 deletions

View File

@@ -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';