mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-07 08:27:03 +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());
|
\trigger_error(__CLASS__ . "::{$fn}(): " . $e->getMessage());
|
||||||
}
|
}
|
||||||
} else {
|
} 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);
|
$data = \json_decode($data, true);
|
||||||
if (!\is_array($data)) {
|
if (!\is_array($data)) {
|
||||||
\trigger_error(__CLASS__ . '::DecryptFromJSON() invalid $data');
|
// \trigger_error(__CLASS__ . '::DecryptFromJSON() invalid $data');
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return static::Decrypt(\array_map('base64_decode', $data), $key);
|
return static::Decrypt(\array_map('base64_decode', $data), $key);
|
||||||
|
|
@ -79,7 +79,7 @@ abstract class Crypt
|
||||||
{
|
{
|
||||||
$data = \explode('.', $data);
|
$data = \explode('.', $data);
|
||||||
if (!\is_array($data)) {
|
if (!\is_array($data)) {
|
||||||
\trigger_error(__CLASS__ . '::DecryptUrlSafe() invalid $data');
|
// \trigger_error(__CLASS__ . '::DecryptUrlSafe() invalid $data');
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return static::Decrypt(\array_map('MailSo\\Base\\Utils::UrlSafeBase64Decode', $data), $key);
|
return static::Decrypt(\array_map('MailSo\\Base\\Utils::UrlSafeBase64Decode', $data), $key);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue