Fix: Do not lowercase by default contact emails (#1834)

Co-authored-by: Adrià Casajús <adria.casajus@proton.ch>
This commit is contained in:
Adrià Casajús 2023-08-04 10:36:13 +02:00 committed by GitHub
parent 06b7e05e61
commit 9ab3695d36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1806,7 +1806,7 @@ class Contact(Base, ModelMixin):
flush = kw.pop("flush", False)
# make sure email is lowercase and doesn't have any whitespace
website_email = sanitize_email(kw["website_email"])
website_email = sanitize_email(kw["website_email"], not_lower=True)
kw["website_email"] = website_email
if "reply_email" in kw:
kw["reply_email"] = normalize_reply_email(sanitize_email(kw["reply_email"]))