changeset c7c2e519ed63 in /home/hg/repos/gajim-plugins
author: lovetox forenjunkie@chelo.at branches: details:gajim-plugins?cmd=changeset;node=c7c2e519ed63 description: Fix leaking cleartext when using XHTML - Fixes #145
diffstat:
gotr/manifest.ini | 2 +- gotr/otrmodule.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-)
diffs (25 lines):
diff -r 35d50ee17f89 -r c7c2e519ed63 gotr/manifest.ini --- a/gotr/manifest.ini Sat Oct 08 20:42:16 2016 +0200 +++ b/gotr/manifest.ini Sun Oct 09 00:45:45 2016 +0200 @@ -1,7 +1,7 @@ [info] name: Off-The-Record Encryption short_name: gotr -version: 1.9.4 +version: 1.9.5 description: Provide OTR encryption. Read <a href="https://github.com/python-otr/gajim-otr/wiki">https://github.com/python-otr/gajim-otr/wiki</a> before use. authors: Kjell Braden afflux.gajim@pentabarf.de homepage: http://gajim-otr.pentabarf.de diff -r 35d50ee17f89 -r c7c2e519ed63 gotr/otrmodule.py --- a/gotr/otrmodule.py Sat Oct 08 20:42:16 2016 +0200 +++ b/gotr/otrmodule.py Sun Oct 09 00:45:45 2016 +0200 @@ -623,7 +623,8 @@ sendMessage(potr.context.FRAGMENT_SEND_ALL_BUT_LAST, xhtml) if xhtml != encrypted_msg.strip(): #.strip() because sendMessage() adds whitespaces encrypted = True - event.msg_iq.setXHTML(encrypted_msg) + event.msg_iq.delChild('html') + event.msg_iq.setBody(encrypted_msg) elif body: body = escape(body).encode('utf8') encrypted_msg = self.us[event.conn.name].\