From d54915c62af7616c5ea9edde5ba51c17779c35dc Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sun, 5 Mar 2006 19:39:07 +0000 Subject: [PATCH] base64.encodestring() adds some \n in the string. Remove it --- src/common/xmpp/auth_nb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/xmpp/auth_nb.py b/src/common/xmpp/auth_nb.py index 4610cb716..df9a5fe38 100644 --- a/src/common/xmpp/auth_nb.py +++ b/src/common/xmpp/auth_nb.py @@ -79,7 +79,7 @@ class SASL(PlugIn): sasl_data='%s\x00%s\x00%s' % (self.username+'@' + self._owner.Server, self.username, self.password) node=Node('auth', attrs={'xmlns':NS_SASL,'mechanism':'PLAIN'}, - payload=[base64.encodestring(sasl_data)]) + payload=[base64.encodestring(sasl_data).replace('\n','']) else: self.startsasl='failure' self.DEBUG('I can only use DIGEST-MD5 and PLAIN mecanisms.', 'error')