Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2007-12-04 00:29:12 +0300
committerYann Leboulanger <asterix@lagaule.org>2007-12-04 00:29:12 +0300
commit55385c53565759f6182dc473ecb1405ae2efa6f8 (patch)
treed2eb6c9ca0f96edcc77acfbcdd180f317597f7ac
parentd88b93b1ff1068f73233dd03d442ca07001767d2 (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.py2
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