﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
31053	EmailValidator should not accept soft hyphen in email addresses.	Mogoh Viol	nobody	"This emailaddress contains an invisible soft hyphen: test@example­example.com

Djangos EmailValidator accepts that, but should not:
{{{#!python
from django.core import validators
validators.validate_email('test@example­example.com')
}}}

Pythons formataddr does not accept it:

{{{#!python
from email.utils import formataddr
formataddr(('','test@example­example.com'))
}}}

{{{
Traceback (most recent call last):
  File ""<stdin>"", line 1, in <module>
  File ""/usr/lib/python3.6/email/utils.py"", line 91, in formataddr
    address.encode('ascii')
UnicodeEncodeError: 'ascii' codec can't encode character '\xad' in position 12: ordinal not in range(128)
}}}

Djangos EmailValidator should not accept soft hyphens."	Bug	closed	Core (Mail)	dev	Normal	invalid		Joachim Jablon	Unreviewed	0	0	0	0	0	0
