Skip to content

Ascii decoding in OTR messages might make downstream plugins crash #57

Closed
@koolfy

Description

@koolfy

It has been reported by @mathieui that some OTR implementations (Jitsi, for example), do localize even OTR errors in ?OTR messages.

The issue lies at line https://github.com/python-otr/pure-python-otr/blob/master/src/potr/proto.py#L55

For example, an implementation throwing a message such as

?OTR Error: ééààùù

at a potr OTR plugin, will effecively make it attempt to interpret non-ascii chars as ascii, and will raise an exception that the downstream OTR plugin should not have to handle. This is our job.

The suggested fix would be to interpret it as UTF8, thus conforming with the rest of our string decoding.

Funny how this ties in with issue #54 :)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions