Handle IDN domains that went to auction

Both ASCII and unicode should be supported to register a domain.
This commit is contained in:
Maciej Szlosarczyk 2019-04-02 17:17:40 +03:00
parent d39e768e35
commit d471b273f7
No known key found for this signature in database
GPG key ID: 41D62D42D3B0D765
3 changed files with 288 additions and 1 deletions

View file

@ -24,7 +24,7 @@ class Epp::DomainsController < EppController
if Domain.release_to_auction
request_domain_name = params[:parsed_frame].css('name').text.strip.downcase
domain_name = DNS::DomainName.new(request_domain_name)
domain_name = DNS::DomainName.new(SimpleIDN.to_unicode(request_domain_name))
if domain_name.at_auction?
throw :epp_error,