[Bug 16891] Telepathy should support OTR encryption
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Fri May 9 13:01:22 PDT 2014
https://bugs.freedesktop.org/show_bug.cgi?id=16891
--- Comment #73 from Simon McVittie <simon.mcvittie at collabora.co.uk> ---
(In reply to comment #68)
> It doesn't matter, if the message is in the form "?OTR:<base64>" then it
> puts new_content to whatever the original message was (html or not). OTR
> doesn't change anything if user wants to send html message as plaintext,
> empathy will escape when displaying them.
Are you saying that in this message
<message>
<body>?OTR:123123123</body>
</message>
the recipient is expected to decrypt 123123123 and treat the result as plain
text, but in this message
<message>
<html xmlns='http://jabber.org/protocol/xhtml-im'>
<body xmlns='http://www.w3.org/1999/xhtml'>
?OTR:456456456
</body>
</html>
the recipient is expected to decrypt 456456456 and treat the result as HTML? Or
what?
There must be a rule you can use to determine whether the decrypted content is
text/plain or text/html. "Text that may contain HTML" is not a well-formed
concept - either the message "<" is a 4 character reply to "remind me how
you escape < in HTML?", or it's a single U+003C LESS-THAN SIGN character. It
can't be both.
It is entirely possible that the rule is "do whatever Pidgin does", which in
practice probably means it's always treated as HTML - that's what my review
comments assume.
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the telepathy-bugs
mailing list