Changeset 5590

Show
Ignore:
Timestamp:
03/05/06 20:39:07 (3 years ago)
Author:
asterix
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/common/xmpp/auth_nb.py

    r5458 r5590  
    8080                                                                                                                                        self.username, self.password) 
    8181                        node=Node('auth', attrs={'xmlns':NS_SASL,'mechanism':'PLAIN'},  
    82                                                                 payload=[base64.encodestring(sasl_data)]) 
     82                                                                payload=[base64.encodestring(sasl_data).replace('\n','']) 
    8383                else: 
    8484                        self.startsasl='failure'