mirror of
https://github.com/google/nomulus
synced 2026-07-29 03:22:47 +00:00
Replaces uses of java.net.IDN with our Idn stand in class
java.net.IDN uses outdated IDNA2003. We've created a replacement class that uses the modern UTS46 transitional standard via the IDNA library. This fixes uses of IDN in the RDAP code. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117243868
This commit is contained in:
committed by
Justine Tunney
parent
46e02c6bd1
commit
5f7bf57cf9
@@ -35,12 +35,12 @@ import com.google.domain.registry.request.HttpException.BadRequestException;
|
||||
import com.google.domain.registry.request.HttpException.NotFoundException;
|
||||
import com.google.domain.registry.request.Parameter;
|
||||
import com.google.domain.registry.util.Clock;
|
||||
import com.google.domain.registry.util.Idn;
|
||||
|
||||
import com.googlecode.objectify.cmd.Query;
|
||||
|
||||
import org.joda.time.DateTime;
|
||||
|
||||
import java.net.IDN;
|
||||
import java.net.InetAddress;
|
||||
|
||||
import javax.inject.Inject;
|
||||
@@ -98,7 +98,7 @@ public class RdapNameserverSearchAction extends RdapActionBase {
|
||||
"Name parameter must contain only letters, dots"
|
||||
+ " and hyphens, and an optional single wildcard");
|
||||
}
|
||||
results = searchByName(RdapSearchPattern.create(IDN.toASCII(nameParam.get()), true), now);
|
||||
results = searchByName(RdapSearchPattern.create(Idn.toASCII(nameParam.get()), true), now);
|
||||
} else {
|
||||
// syntax: /rdap/nameservers?ip=1.2.3.4
|
||||
results = searchByIp(ipParam.get());
|
||||
|
||||
Reference in New Issue
Block a user