\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:
parent
d88b93b1ff
commit
55385c5356
|
@ -1606,6 +1606,8 @@ class ConnectionHandlers(ConnectionVcard, ConnectionBytestream, ConnectionDisco,
|
||||||
keyID = gajim.config.get_per('accounts', self.name, 'keyid')
|
keyID = gajim.config.get_per('accounts', self.name, 'keyid')
|
||||||
if keyID:
|
if keyID:
|
||||||
decmsg = self.gpg.decrypt(encmsg, keyID)
|
decmsg = self.gpg.decrypt(encmsg, keyID)
|
||||||
|
# \x00 chars are not allowed in C (so in GTK)
|
||||||
|
decmsg = decmsg.replace('\x00', '')
|
||||||
if decmsg:
|
if decmsg:
|
||||||
msgtxt = decmsg
|
msgtxt = decmsg
|
||||||
encrypted = True
|
encrypted = True
|
||||||
|
|
Loading…
Reference in New Issue