1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-12 17:07:23 +01:00

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
2015-01-17 14:48:18 +00:00
parent b02d7d990e
commit c38c61a1e4
7 changed files with 94 additions and 16 deletions

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);
}
}