#22630: EmailField allows invalid text to be saved as long as an email address is inside the text -------------------------------------+------------------------------------- Reporter: joe@… | Owner: nobody Type: Bug | Status: closed Component: Database layer | Version: 1.4 (models, ORM) | Resolution: needsinfo Severity: Normal | Triage Stage: Keywords: email orm field | Unreviewed validators | Needs documentation: 0 Has patch: 0 | Patch needs improvement: 0 Needs tests: 0 | UI/UX: 0 Easy pickings: 0 | -------------------------------------+-------------------------------------
Comment (by joe@…): I am able to reproduce this by assigning a dict to the email. Also, please note this is a bug with the Django ORM and not (that I know of) an issue with the forms (though if they use the same validator this could possibly be an issue). https://gist.github.com/joestump/9b76fd94378c960ed7c3 So the issue appears to be that there's no type checking combined with the blind split on the @ sign. -- Ticket URL: <https://code.djangoproject.com/ticket/22630#comment:2> 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/074.889d0381f241edd7948ec997f684abf5%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.