Skip to content
Snippets Groups Projects
Commit d54915c6 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

base64.encodestring() adds some \n in the string. Remove it

parent 35e7328e
No related branches found
No related tags found
No related merge requests found
......@@ -79,7 +79,7 @@ def FeaturesHandler(self, conn, feats):
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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment