From 737fbc0dc1a16786f324c7e57ed58d895b25870b Mon Sep 17 00:00:00 2001 From: Kushagra S Date: Sat, 20 Jan 2024 22:30:23 +0530 Subject: [PATCH] Update validators.py Updated source policies --- django/core/validators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/validators.py b/django/core/validators.py index 17cf4cd6cf..070d6fc40b 100644 --- a/django/core/validators.py +++ b/django/core/validators.py @@ -204,7 +204,7 @@ class EmailValidator: self.domain_allowlist = allowlist def __call__(self, value): - # The maximum length of an email is 254 characters per RFC 5321 + # The maximum length of an email is 254 characters per RFC 5321/5322 # section 3. if not value or "@" not in value or len(value) > 254: raise ValidationError(self.message, code=self.code, params={"value": value})