Make master key unreadable to others (bug #410)

This commit is contained in:
Jakub Vrana 2014-06-26 13:22:46 +02:00
parent 06a2d87e55
commit b87d43fdcd
2 changed files with 2 additions and 0 deletions

View file

@ -1065,6 +1065,7 @@ function password_file($create) {
if ($return || !$create) {
return $return;
}
umask(066);
$fp = @fopen($filename, "w"); // @ - can have insufficient rights //! is not atomic
if ($fp) {
$return = rand_string();

View file

@ -1,6 +1,7 @@
Adminer 4.1.1-dev:
Fix reading routine column collations
Unlock session in alter database
Make master key unreadable to others (bug #410)
MySQL: Use utf8mb4 if available
Adminer 4.1.0 (released 2014-04-18)