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

This commit is contained in:
Yann Leboulanger 2007-12-03 21:29:12 +00:00
parent d88b93b1ff
commit 55385c5356
1 changed files with 2 additions and 0 deletions

View File

@ -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