Bugfix: DecodeKeyValuesQ could be null

This commit is contained in:
djmaze 2021-12-09 12:46:35 +01:00
parent b507c4cd75
commit 26b728cf93

View file

@ -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