mirror of
https://github.com/the-djmaze/snappymail.git
synced 2025-02-24 23:08:08 +08:00
Bugfix: DecodeKeyValuesQ could be null
This commit is contained in:
parent
b507c4cd75
commit
26b728cf93
1 changed files with 2 additions and 2 deletions
|
@ -55,12 +55,12 @@ class Utils
|
|||
);
|
||||
}
|
||||
|
||||
public static function DecodeKeyValuesQ(string $sEncodedValues, string $sCustomKey = '') : array
|
||||
public static function DecodeKeyValuesQ(string $sEncodedValues, string $sCustomKey = '') : ?array
|
||||
{
|
||||
return \SnappyMail\Crypt::DecryptUrlSafe(
|
||||
$sEncodedValues,
|
||||
\sha1(APP_SALT.$sCustomKey.'Q'.static::GetSessionToken())
|
||||
);
|
||||
) ?: null;
|
||||
}
|
||||
|
||||
public static function unserialize(string $sDecodedValues) : array
|
||||
|
|
Loading…
Reference in a new issue