mirror of
https://github.com/google/nomulus
synced 2026-09-30 19:55:45 +00:00
Removes fixed TODO
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117278234
This commit is contained in:
committed by
Justine Tunney
parent
847dac792a
commit
cd13aa8a96
@@ -99,7 +99,6 @@ public class RdapDomainSearchAction extends RdapActionBase {
|
|||||||
ImmutableList<ImmutableMap<String, Object>> results;
|
ImmutableList<ImmutableMap<String, Object>> results;
|
||||||
if (nameParam.isPresent()) {
|
if (nameParam.isPresent()) {
|
||||||
// syntax: /rdap/domains?name=exam*.com
|
// syntax: /rdap/domains?name=exam*.com
|
||||||
// TODO(b/24329745): improve IDN handling
|
|
||||||
String asciiName;
|
String asciiName;
|
||||||
try {
|
try {
|
||||||
asciiName = Idn.toASCII(nameParam.get());
|
asciiName = Idn.toASCII(nameParam.get());
|
||||||
|
|||||||
@@ -92,7 +92,6 @@ public class RdapNameserverSearchAction extends RdapActionBase {
|
|||||||
ImmutableList<ImmutableMap<String, Object>> results;
|
ImmutableList<ImmutableMap<String, Object>> results;
|
||||||
if (nameParam.isPresent()) {
|
if (nameParam.isPresent()) {
|
||||||
// syntax: /rdap/nameservers?name=exam*.com
|
// syntax: /rdap/nameservers?name=exam*.com
|
||||||
// TODO(b/24329745): improve IDN handling
|
|
||||||
if (!LDH_PATTERN.matcher(nameParam.get()).matches()) {
|
if (!LDH_PATTERN.matcher(nameParam.get()).matches()) {
|
||||||
throw new BadRequestException(
|
throw new BadRequestException(
|
||||||
"Name parameter must contain only letters, dots"
|
"Name parameter must contain only letters, dots"
|
||||||
|
|||||||
Reference in New Issue
Block a user