VirtualMailManager/handler.py
changeset 702 01db2457bbed
parent 675 d24f094d1cb5
child 703 58815c004a61
--- a/VirtualMailManager/handler.py	Sun Jan 26 16:13:00 2014 +0000
+++ b/VirtualMailManager/handler.py	Mon Jan 27 21:27:21 2014 +0000
@@ -522,7 +522,8 @@
                            INVALID_ARGUMENT)
         dom = self._get_domain(domainname)
         dominfo = dom.get_info()
-        if dominfo['domain name'].startswith('xn--'):
+        if dominfo['domain name'].startswith('xn--') or \
+           dominfo['domain name'].count('.xn--'):
             dominfo['domain name'] += ' (%s)' % \
                                       dominfo['domain name'].decode('idna')
         if details is None: