diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2007-12-04 00:29:12 +0300 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2007-12-04 00:29:12 +0300 |
commit | 55385c53565759f6182dc473ecb1405ae2efa6f8 (patch) | |
tree | d2eb6c9ca0f96edcc77acfbcdd180f317597f7ac | |
parent | d88b93b1ff1068f73233dd03d442ca07001767d2 (diff) |
\x00 chars are not allowed in C (end of string) so in GTK. But we can get from gpg encrypted messages.
-rw-r--r-- | src/common/connection_handlers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/connection_handlers.py b/src/common/connection_handlers.py index 20c2aadcd..da3da52bd 100644 --- a/src/common/connection_handlers.py +++ b/src/common/connection_handlers.py @@ -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 |