Do not check permissions on Windows, it seems to be broken anyway.
This commit is contained in:
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2006-01-01 Michal Čihař <michal@cihar.com>
|
||||||
|
* libraries/Config.class.php: Do not check permissions on Windows, it
|
||||||
|
seems to be broken anyway.
|
||||||
|
|
||||||
2006-01-01 Marc Delisle <lem9@users.sourceforge.net>
|
2006-01-01 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/transformations.lib.php: remove some PHP3 compatibility code
|
* libraries/transformations.lib.php: remove some PHP3 compatibility code
|
||||||
|
|
||||||
|
@@ -424,11 +424,15 @@ class PMA_Config
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check for permissions (on platforms that support it):
|
// Check for permissions (on platforms that support it):
|
||||||
$perms = @stat($this->getSource());
|
$perms = @fileperms($this->getSource());
|
||||||
if (!($perms === false) && ($perms['mode'] & 2)) {
|
if (!($perms === false) && ($perms & 2)) {
|
||||||
|
// This check is normally done after loading configuration
|
||||||
|
$this->checkWebServerOs();
|
||||||
|
if ($this->get('PMA_IS_WINDOWS') == 0) {
|
||||||
$this->source_mtime = 0;
|
$this->source_mtime = 0;
|
||||||
die('Wrong permissions on configuration file, should not be world writable!');
|
die('Wrong permissions on configuration file, should not be world writable!');
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user