Do not use binary in the plain auth
Changed from binary to string in plain auth.
This commit is contained in:
parent
e84e932df4
commit
6378c722b0
@ -209,14 +209,13 @@ class IMAPServer(object):
|
|||||||
OfflineImapError.ERROR.REPO)
|
OfflineImapError.ERROR.REPO)
|
||||||
|
|
||||||
passwd = self.__getpassword()
|
passwd = self.__getpassword()
|
||||||
authz = b''
|
authz = ''
|
||||||
|
NULL = '\x00'
|
||||||
if self.user_identity != None:
|
if self.user_identity != None:
|
||||||
authz = self.user_identity
|
authz = self.user_identity
|
||||||
# At this point all authz, authc and passwd are expected bytes encoded
|
|
||||||
# in UTF-8.
|
|
||||||
NULL = b'\x00'
|
|
||||||
retval = NULL.join((authz, authc, passwd))
|
retval = NULL.join((authz, authc, passwd))
|
||||||
logsafe_retval = NULL.join((authz, authc, b'(passwd hidden for log)'))
|
logsafe_retval = NULL.join((authz, authc, '(passwd hidden for log)'))
|
||||||
self.ui.debug('imap', '__plainhandler: returning %s'% logsafe_retval)
|
self.ui.debug('imap', '__plainhandler: returning %s'% logsafe_retval)
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user