mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
Bugfix: path double slash
This commit is contained in:
parent
33623db6ea
commit
0cea3312d6
1 changed files with 2 additions and 2 deletions
|
|
@ -275,10 +275,10 @@ trait Pgp
|
||||||
$key[1] = \base64_encode($key[1]);
|
$key[1] = \base64_encode($key[1]);
|
||||||
$key[2] = \base64_encode($key[2]);
|
$key[2] = \base64_encode($key[2]);
|
||||||
$key[] = \hash_hmac('sha1', $key[2], $hash);
|
$key[] = \hash_hmac('sha1', $key[2], $hash);
|
||||||
return !!\file_put_contents("{$dir}/{$keyId}.key", \json_encode($key));
|
return !!\file_put_contents("{$dir}{$keyId}.key", \json_encode($key));
|
||||||
}
|
}
|
||||||
if (\str_contains($key, 'PGP PUBLIC KEY')) {
|
if (\str_contains($key, 'PGP PUBLIC KEY')) {
|
||||||
return !!\file_put_contents("{$dir}/{$keyId}_public.asc", $key);
|
return !!\file_put_contents("{$dir}{$keyId}_public.asc", $key);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue