Author: orbiter Date: 2008-02-27 00:00:20 +0100 (Wed, 27 Feb 2008) New Revision: 4516
Modified: trunk/source/de/anomic/yacy/yacyURL.java Log: another fix for the punycode parser/generator (should work now!) Modified: trunk/source/de/anomic/yacy/yacyURL.java =================================================================== --- trunk/source/de/anomic/yacy/yacyURL.java 2008-02-26 22:37:23 UTC (rev 4515) +++ trunk/source/de/anomic/yacy/yacyURL.java 2008-02-26 23:00:20 UTC (rev 4516) @@ -470,10 +470,10 @@ int d1 = host.lastIndexOf('.'); if (d1 >= 0) { String tld = host.substring(d1 + 1); - String dom = host.substring(0, d1 - 1); + String dom = host.substring(0, d1); int d0 = dom.lastIndexOf('.'); if (d0 >= 0) { - host = dom.substring(0, d0) + ".xn--" + Punycode.encode(dom.substring(d0)) + "." + tld; + host = dom.substring(0, d0) + ".xn--" + Punycode.encode(dom.substring(d0 + 1)) + "." + tld; } else { host = "xn--" + Punycode.encode(dom) + "." + tld; } _______________________________________________ YaCy-svn mailing list YaCy-svn@lists.berlios.de https://lists.berlios.de/mailman/listinfo/yacy-svn