1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-18 20:31:19 +02:00

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();