Don't allow loading of configuration if there is no write permission on config.
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2005-11-28 Michal Čihař <michal@cihar.com>
|
||||
* scripts/setup.php: Don't allow loading of configuration if there is no
|
||||
write permission on config.
|
||||
|
||||
2005-11-28 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||
* libraries/Theme.class.php, libraries/Theme_Manager.class.php:
|
||||
new classes for handling themes
|
||||
|
@@ -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