[PATCH] IDN ccTLDs
Urs Janßen <[email protected]> Fri, 07 May 2010 20:20:02 +0200
| Newsgroups | gmane.network.tin.devel |
|---|---|
| Organization | tin.org |
| Message-ID | <[email protected]> |
as the first three IDN ccTLDs are active (see
<http://www.icann.org/en/announcements/announcement-05may10-en.htm>)
here is a quick and dirty patch for gnksa_check_domain() to accept
those TLDs. the propper way to do this is probably tld_check_lz() from
libidn.
=== modified file 'src/misc.c'
--- src/misc.c 2010-04-25 10:46:16 +0000
+++ src/misc.c 2010-05-07 18:17:04 +0000
@@ -3210,8 +3210,12 @@
}
if (disable_gnksa_domain_check)
result = GNKSA_OK;
- if (GNKSA_OK != result)
- return result;
+ if (GNKSA_OK != result) {
+ if (!strncasecmp(aux, "xn--", 4)) /* hack for IDN ccTLDs like xn--wgbh1c (Egypt), xn--mgbaam7a8h (Emarat) or xn--mgberp4a5d4ar (AlSaudiah) */
+ result = GNKSA_OK;
+ else
+ return result;
+ }
break;
}