Use base64 for args in old rc code as well

This commit is contained in:
Kovid Goyal 2022-11-25 21:12:59 +05:30
parent 15a7aeff4d
commit 5d3a9f2628
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -134,9 +134,10 @@ are sent as is, not interpreted for escapes.
yield ret
def chunks(text: str) -> CmdGenerator:
data = parse_send_text_bytes(text).decode('utf-8')
data = parse_send_text_bytes(text)
while data:
ret['data'] = f'text:{data[:limit]}'
b = base64.standard_b64encode(data[:limit]).decode("ascii")
ret['data'] = f'base64:{b}'
yield ret
data = data[limit:]