Strip and downcase domain name before processing

This commit is contained in:
Martin Lensment 2014-10-20 12:12:49 +03:00
parent 4659aa0cba
commit 35d836531e
6 changed files with 25 additions and 10 deletions

View file

@ -477,6 +477,8 @@ class Epp::EppDomain < Domain
res = []
domains.each do |x|
x.strip!
x.downcase!
unless DomainNameValidator.validate_format(x)
res << { name: x, avail: 0, reason: 'invalid format' }
next