Merge ~cjwatson/launchpad:loosen-valid-email into launchpad:master
Proposed by
Colin Watson
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 800c38da63a7be24f07e8a3c23cf10c545d84b62 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:loosen-valid-email |
Merge into: | launchpad:master |
Diff against target: |
19 lines (+6/-1) 1 file modified
lib/lp/app/validators/email.py (+6/-1) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Thiago F. Pappacena (community) | Approve | ||
Review via email:
|
Commit message
Loosen valid_email to accept digits and hyphens in TLDs
Description of the change
This normally comes up in practice when processing package uploads from people who've forgotten to set their email address properly so dch(1) generated one from their hostname; these are syntactically well-formed despite being incorrect, but dak accepts them and we don't have a principled reason to reject the upload on that basis.
Digits and hyphens also appear in the IDNA encoding of internationalised domain names. This commit doesn't constitute full support for IDNs, but it makes it possible to work around some issues.
To post a comment you must log in.
LGTM