Add decrypt message.

This commit is contained in:
James Cole 2023-04-15 10:33:33 +02:00
parent 0189b91d3b
commit dc26ce308d
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -84,10 +84,10 @@ class AttachmentRepository implements AttachmentRepositoryInterface
if ($disk->exists($file)) {
$encryptedContent = (string)$disk->get($file);
try {
$unencryptedContent = Crypt::decrypt($encryptedContent); // verified
} catch (DecryptException $e) {
Log::debug(sprintf('Could not decrypt attachment #%d but this is fine: %s', $attachment->id, $e->getMessage()));
$unencryptedContent = $encryptedContent;
}
}