mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-23 06:13:54 +01:00
Conversion::importAuthorization - array key fixed
This commit is contained in:
parent
2e37ef8cd6
commit
472c9ec238
@ -53,7 +53,7 @@ abstract class AuthKey implements JsonSerializable
|
|||||||
public function __construct(array $old = [])
|
public function __construct(array $old = [])
|
||||||
{
|
{
|
||||||
if (isset($old['auth_key'])) {
|
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));
|
$old['auth_key'] = base64_decode(substr($old['auth_key'], 4));
|
||||||
}
|
}
|
||||||
$this->setAuthKey($old['auth_key']);
|
$this->setAuthKey($old['auth_key']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user