Skip to content

Commit

Permalink
Conversion::importAuthorization - array key fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
2Garin authored and xtrime-ru committed Oct 31, 2023
1 parent 2e37ef8 commit 472c9ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MTProto/AuthKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
Expand Down

0 comments on commit 472c9ec

Please sign in to comment.