#27290: Email validation doesn't check length -------------------------------+-------------------------------------- Reporter: kyoki | Owner: nobody Type: Bug | Status: new Component: Uncategorized | Version: 1.10 Severity: Normal | Resolution: Keywords: | Triage Stage: Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------------------------- Changes (by Lewis Cowles):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: Replying to [ticket:27290 kyoki]: > Django's {{{ validate_email }}}/{{{EmailValidator}}} doesn't properly check the length of emails as defined in RFC3696. The local part should be restricted to 64 characters and the domain to 255. The overall email address length is restricted to 256 characters in RFC 2821. The maximum length of an email address is 254 as in RFC 5321 it states "The maximum total length of a reverse-path or forward-path is 256 characters". With two chars taken up, 254 is all we are left with. **Sources:** http://stackoverflow.com/questions/386294/what-is-the-maximum-length-of-a -valid-email-address http://www.rfc-editor.org/errata_search.php?rfc=3696&eid=1690 -- Ticket URL: <https://code.djangoproject.com/ticket/27290#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/063.570bf87fce8f925d6237853fd4cd7f2a%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.