From 9ab3695d362b4b6a88b62cc4130ed75219020a8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A0=20Casaj=C3=BAs?= Date: Fri, 4 Aug 2023 10:36:13 +0200 Subject: [PATCH] Fix: Do not lowercase by default contact emails (#1834) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Adrià Casajús --- app/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models.py b/app/models.py index 9242b528..6c97ec93 100644 --- a/app/models.py +++ b/app/models.py @@ -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"]))