mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-28 11:39:21 +03:00
Disable the Decrypt "invalid $data" error log messages
This commit is contained in:
parent
b6db3360a3
commit
6ea42d3171
1 changed files with 3 additions and 3 deletions
|
|
@ -61,7 +61,7 @@ abstract class Crypt
|
|||
\trigger_error(__CLASS__ . "::{$fn}(): " . $e->getMessage());
|
||||
}
|
||||
} else {
|
||||
\trigger_error(__CLASS__ . '::Decrypt() invalid $data');
|
||||
// \trigger_error(__CLASS__ . '::Decrypt() invalid $data');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -69,7 +69,7 @@ abstract class Crypt
|
|||
{
|
||||
$data = \json_decode($data, true);
|
||||
if (!\is_array($data)) {
|
||||
\trigger_error(__CLASS__ . '::DecryptFromJSON() invalid $data');
|
||||
// \trigger_error(__CLASS__ . '::DecryptFromJSON() invalid $data');
|
||||
return null;
|
||||
}
|
||||
return static::Decrypt(\array_map('base64_decode', $data), $key);
|
||||
|
|
@ -79,7 +79,7 @@ abstract class Crypt
|
|||
{
|
||||
$data = \explode('.', $data);
|
||||
if (!\is_array($data)) {
|
||||
\trigger_error(__CLASS__ . '::DecryptUrlSafe() invalid $data');
|
||||
// \trigger_error(__CLASS__ . '::DecryptUrlSafe() invalid $data');
|
||||
return null;
|
||||
}
|
||||
return static::Decrypt(\array_map('MailSo\\Base\\Utils::UrlSafeBase64Decode', $data), $key);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue