This commit is contained in:
Virtuworks 2014-12-20 07:49:27 -05:00
commit 9ad5109cbb
2 changed files with 2 additions and 0 deletions

View file

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

View file

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