mirror of
https://github.com/simple-login/app.git
synced 2024-09-30 05:31:30 +02:00
contact email can contain whitespace
This commit is contained in:
parent
299f7d3fba
commit
40892f8253
@ -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 New Issue
Block a user