Skip to content
Snippets Groups Projects
Commit 55385c53 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

\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
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment