go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.12k stars 5.41k forks source link

Add support for IDN #15068

Open tuxmaster5000 opened 3 years ago

tuxmaster5000 commented 3 years ago

Gitea 1.13.4 will not show email address with an idn domain part correct. For example the IDN föö.de is shown as the ACE one xn--f-1gaa.de

noerw commented 3 years ago

for reference: https://en.wikipedia.org/wiki/International_email

did you check if the email is stored correctly in DB?

tuxmaster5000 commented 3 years ago

Yes the mail is stored as the ace one in the data base. So I think it is stored correct, but shown wrong. But when I try to add an email in the IDN coding via the ui, then it will fails with the error: invalid email address.

zeripath commented 3 years ago

IDN is a nightmare to do safely.

Any PR attempting to add this will need serious review.