mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Add decrypt message.
This commit is contained in:
@@ -84,10 +84,10 @@ class AttachmentRepository implements AttachmentRepositoryInterface
|
|||||||
|
|
||||||
if ($disk->exists($file)) {
|
if ($disk->exists($file)) {
|
||||||
$encryptedContent = (string)$disk->get($file);
|
$encryptedContent = (string)$disk->get($file);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$unencryptedContent = Crypt::decrypt($encryptedContent); // verified
|
$unencryptedContent = Crypt::decrypt($encryptedContent); // verified
|
||||||
} catch (DecryptException $e) {
|
} catch (DecryptException $e) {
|
||||||
|
Log::debug(sprintf('Could not decrypt attachment #%d but this is fine: %s', $attachment->id, $e->getMessage()));
|
||||||
$unencryptedContent = $encryptedContent;
|
$unencryptedContent = $encryptedContent;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user