Story #108518226 - add IDN lookup method to support info and check features of EPP

This commit is contained in:
Matt Farnsworth 2015-11-19 19:11:30 +02:00
parent 360fb57a68
commit bbc53700bd
3 changed files with 13 additions and 2 deletions

View file

@ -225,7 +225,7 @@ class Epp::DomainsController < EppController
def find_domain
domain_name = params[:parsed_frame].css('name').text.strip.downcase
@domain = Epp::Domain.where(name: domain_name).includes(registrant: :registrar).first
@domain = Epp::Domain.find_by_idn domain_name
unless @domain
epp_errors << {