mirror of
https://github.com/internetee/registry.git
synced 2025-07-23 19:20:37 +02:00
Pump SimpleIDN gem version, add check/test to block punicode IDN domains
Closes #1142
This commit is contained in:
parent
362c3c603c
commit
89cdfe20fc
5 changed files with 10 additions and 4 deletions
|
@ -60,7 +60,8 @@ module DNS
|
|||
end
|
||||
|
||||
def blocked?
|
||||
BlockedDomain.where(name: name).any?
|
||||
BlockedDomain.where(name: name).any? ||
|
||||
BlockedDomain.where(name: SimpleIDN.to_unicode(name)).any?
|
||||
end
|
||||
|
||||
def reserved?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue