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:
@@ -64,7 +64,7 @@ function show_ssl() {
|
||||
var row = $("<tr><th class='domain'><a href=''></a></th><td class='status'></td> <td class='actions'><a href='#' onclick='return ssl_install(this);' class='btn btn-xs'>Install Certificate</a></td></tr>");
|
||||
tb.append(row);
|
||||
row.attr('data-domain', domains[i].domain);
|
||||
row.find('.domain a').text(domains[i].domain);
|
||||
row.find('.domain a').text(domains[i].pretty);
|
||||
row.find('.domain a').attr('href', 'https://' + domains[i].domain);
|
||||
row.addClass("text-" + domains[i].ssl_certificate[0]);
|
||||
row.find('.status').text(domains[i].ssl_certificate[1]);
|
||||
@@ -74,7 +74,7 @@ function show_ssl() {
|
||||
row.find('.actions a').addClass('btn-primary').text('Install Certificate');
|
||||
}
|
||||
|
||||
$('#ssldomain').append($('<option>').text(domains[i].domain));
|
||||
$('#ssldomain').append($('<option>').text(domains[i].pretty).val(domains[i].domain));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user