mirror of
https://github.com/simple-login/app.git
synced 2025-02-25 00:03:03 +08:00
contact email can contain whitespace
This commit is contained in:
parent
299f7d3fba
commit
40892f8253
1 changed files with 1 additions and 0 deletions
|
@ -576,6 +576,7 @@ def parseaddr_unicode(addr) -> (str, str):
|
||||||
'=?UTF-8?B?TmjGoW4gTmd1eeG7hW4=?= <abcd@gmail.com>' -> ('Nhơn Nguyễn', "abcd@gmail.com")
|
'=?UTF-8?B?TmjGoW4gTmd1eeG7hW4=?= <abcd@gmail.com>' -> ('Nhơn Nguyễn', "abcd@gmail.com")
|
||||||
"""
|
"""
|
||||||
name, email = parseaddr(addr)
|
name, email = parseaddr(addr)
|
||||||
|
# email can have whitespace so we can't remove whitespace here
|
||||||
email = email.strip().lower()
|
email = email.strip().lower()
|
||||||
if name:
|
if name:
|
||||||
name = name.strip()
|
name = name.strip()
|
||||||
|
|
Loading…
Reference in a new issue