mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 08:27:14 +02:00
Removes fixed TODO
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=117278234
This commit is contained in:
parent
847dac792a
commit
cd13aa8a96
2 changed files with 0 additions and 2 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue