Commit 55385c53 authored by Yann Leboulanger's avatar Yann Leboulanger

\x00 chars are not allowed in C (end of string) so in GTK. But we can get from...

\x00 chars are not allowed in C (end of string) so in GTK. But we can get from gpg encrypted messages.
parent d88b93b1
......@@ -1606,6 +1606,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
keyID = gajim.config.get_per('accounts', self.name, 'keyid')
if keyID:
decmsg = self.gpg.decrypt(encmsg, keyID)
# \x00 chars are not allowed in C (so in GTK)
decmsg = decmsg.replace('\x00', '')
if decmsg:
msgtxt = decmsg
encrypted = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment