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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user