mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
Strip and downcase domain name before processing
This commit is contained in:
parent
4659aa0cba
commit
35d836531e
6 changed files with 25 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue