IDN now correctly deals with empty domain name

This commit is contained in:
Olov Karlsson 2014-12-20 07:22:37 +01:00
parent 2d96231e35
commit fe81384ac0
2 changed files with 2 additions and 0 deletions

View file

@ -42,6 +42,7 @@ namespace WebsitePanel.EnterpriseServer
{
private static string GetAsciiZoneName(string zoneName)
{
if (string.IsNullOrEmpty(zoneName)) return zoneName;
var idn = new IdnMapping();
return idn.GetAscii(zoneName);
}

View file

@ -54,6 +54,7 @@ namespace WebsitePanel.Server
private string GetAsciiZoneName(string zoneName)
{
if (string.IsNullOrEmpty(zoneName)) return zoneName;
var idn = new IdnMapping();
return idn.GetAscii(zoneName);
}