mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-08 08:57:03 +03:00
Bugfix: prevent Crypt::Decrypt loop
This commit is contained in:
parent
a4dad79d3f
commit
40471957ee
1 changed files with 1 additions and 1 deletions
|
|
@ -50,7 +50,7 @@ abstract class Crypt
|
||||||
|
|
||||||
public static function Decrypt(array $data, string $key = null) /* : mixed */
|
public static function Decrypt(array $data, string $key = null) /* : mixed */
|
||||||
{
|
{
|
||||||
if (3 === \count($data) && isset($data[0], $data[1], $data[2])) {
|
if (3 === \count($data) && isset($data[0], $data[1], $data[2]) && \strlen($data[0])) {
|
||||||
try {
|
try {
|
||||||
$fn = "{$data[0]}Decrypt";
|
$fn = "{$data[0]}Decrypt";
|
||||||
if (\method_exists(__CLASS__, $fn)) {
|
if (\method_exists(__CLASS__, $fn)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue