1
0
mirror of https://github.com/danog/MadelineProto.git synced 2025-01-23 00:11:20 +01:00

Conversion::importAuthorization - array key fixed

This commit is contained in:
Alexander Ostroverkhov 2023-10-31 20:36:42 +03:00 committed by Alexander Pankratov
parent 2e37ef8cd6
commit 472c9ec238

View File

@ -53,7 +53,7 @@ abstract class AuthKey implements JsonSerializable
public function __construct(array $old = [])
{
if (isset($old['auth_key'])) {
if (\strlen($old['auth_key']) !== 2048 / 8 && strpos($old['authkey'], 'pony') === 0) {
if (\strlen($old['auth_key']) !== 2048 / 8 && strpos($old['auth_key'], 'pony') === 0) {
$old['auth_key'] = base64_decode(substr($old['auth_key'], 4));
}
$this->setAuthKey($old['auth_key']);