Do not check permissions on Windows, it seems to be broken anyway.

This commit is contained in:
Michal Čihař
2006-01-02 09:32:29 +00:00
parent 802898b8ed
commit b14a75c320
2 changed files with 12 additions and 4 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$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>
* libraries/transformations.lib.php: remove some PHP3 compatibility code

View File

@@ -424,11 +424,15 @@ class PMA_Config
}
// Check for permissions (on platforms that support it):
$perms = @stat($this->getSource());
if (!($perms === false) && ($perms['mode'] & 2)) {
$perms = @fileperms($this->getSource());
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;
die('Wrong permissions on configuration file, should not be world writable!');
}
}
return true;
}