Skip to content

Commit

Permalink
Always quote password before login.
Browse files Browse the repository at this point in the history
  • Loading branch information
tonioo committed Mar 8, 2017
1 parent 74c2ef2 commit 474ddc8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modoboa_webmail/lib/imaputils.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,7 @@ def login(self, user, passwd):
except (socket.error, imaplib.IMAP4.error, ssl.SSLError) as error:
raise ImapError(_("Connection to IMAP server failed: %s" % error))

passwd = self.m._quote(passwd)
data = self._cmd("LOGIN", user, passwd)
self.m.state = "AUTH"
if "CAPABILITY" in self.m.untagged_responses:
Expand Down

0 comments on commit 474ddc8

Please sign in to comment.