mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-08 22:18:28 +03:00
Improved symlink detection for gnupg keys
This commit is contained in:
parent
2aad2efc3c
commit
36c54521d7
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ trait Pgp
|
|||
$tmpdir .= \sha1($oAccount->Email());
|
||||
}
|
||||
// if (\RainLoop\Utils::inOpenBasedir($tmpdir) &&
|
||||
if (\is_dir($tmpdir) || \mkdir($tmpdir, 0700, true)) {
|
||||
if (\is_dir($tmpdir) || \is_link($tmpdir) || \symlink($homedir, $tmpdir) || \mkdir($tmpdir, 0700, true)) {
|
||||
$homedir = $tmpdir;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue