internationalized domain names

* Convert domain names to IDNA when going into the users or aliases table.
* After that, ensure domain names are ASCII-only and IDNA-valid.
* In the admin panel, turn IDNA back into Unicode where appropriate.
* Everything on the wire remains ASCII-only, including e.g. IMAP login.
This commit is contained in:
Joshua Tauberer committed 2015-01-17 14:48:18 +00:00
1 parent b02d7d990e
commit c38c61a1e4
7 files changed
+94 -16

No files matched your search

+4 -4
View File
@@ -66,8 +66,8 @@ function show_web() {
for (var i = 0; i < domains.length; i++) {
var row = $("<tr><th class='domain'><a href=''></a></th><td class='directory'><tt/></td></tr>");
tb.append(row);
row.find('.domain a').text('https://' + domains[i].domain);
row.find('.domain a').attr('href', 'https://' + domains[i].domain);
row.find('.domain a').text('https://' + domains[i].pretty);
row.find('.domain a').attr('href', 'https://' + domains[i].pretty);
row.find('.directory tt').text(domains[i].root);
}
@@ -77,8 +77,8 @@ function show_web() {
if (domains[i].root != domains[i].custom_root) {
var row = $("<tr><th class='domain'><a href=''></a></th><td class='directory'><tt></td></tr>");
tb.append(row);
row.find('.domain a').text('https://' + domains[i].domain);
row.find('.domain a').attr('href', 'https://' + domains[i].domain);
row.find('.domain a').text('https://' + domains[i].pretty);
row.find('.domain a').attr('href', 'https://' + domains[i].pretty);
row.find('.directory tt').text(domains[i].custom_root);
}
}