mirror of
https://github.com/danog/MadelineProto.git
synced 2024-11-30 04:59:00 +01:00
Hotfix: bytes to string
This commit is contained in:
parent
28269b1b76
commit
0689c16309
@ -1103,8 +1103,8 @@ trait Files
|
||||
return 0;
|
||||
}
|
||||
if (isset($messageMedia['cdn_key'])) {
|
||||
$ivec = \substr($messageMedia['cdn_iv'], 0, 12).\pack('N', $offset['offset'] >> 4);
|
||||
$res['bytes'] = Crypt::ctrEncrypt($res['bytes'], $messageMedia['cdn_key'], $ivec);
|
||||
$ivec = \substr((string)$messageMedia['cdn_iv'], 0, 12).\pack('N', $offset['offset'] >> 4);
|
||||
$res['bytes'] = Crypt::ctrEncrypt($res['bytes'], (string)$messageMedia['cdn_key'], $ivec);
|
||||
$this->checkCdnHash($messageMedia['file_token'], $offset['offset'], $res['bytes'], $old_dc);
|
||||
}
|
||||
if (isset($messageMedia['key'])) {
|
||||
|
Loading…
Reference in New Issue
Block a user