mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
v2.25.4
This commit is contained in:
parent
7c090ee775
commit
4f7f713046
11 changed files with 68 additions and 27 deletions
|
|
@ -31,7 +31,11 @@ class DemoStorage extends \RainLoop\Providers\Storage\FileStorage
|
|||
}
|
||||
}
|
||||
|
||||
$sDataPath .= '/' . \MailSo\Base\Utils::SecureFileName(\RainLoop\Utils::GetConnectionToken());
|
||||
// $_COOKIE['smtoken']
|
||||
if (empty($_COOKIE['smctoken'])) {
|
||||
\SnappyMail\Cookies::set('smctoken', \base64_encode(\random_bytes(16)), 0, false);
|
||||
}
|
||||
$sDataPath .= '/' . \MailSo\Base\Utils::SecureFileName($_COOKIE['smctoken']);
|
||||
if (!\is_dir($sDataPath) && \mkdir($sDataPath, 0700, true)) {
|
||||
\file_put_contents("{$sDataPath}/settings",'{"RemoveColors":true,"ListInlineAttachments":true}');
|
||||
if (\mkdir($sDataPath.'/.gnupg/private-keys-v1.d', 0700, true)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue