Pump SimpleIDN gem version, add check/test to block punicode IDN domains

Closes #1142
This commit is contained in:
Alex Sherman 2020-02-03 13:47:33 +05:00
parent 362c3c603c
commit 89cdfe20fc
5 changed files with 10 additions and 4 deletions

View file

@ -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?