Fix crash when encountering invalid URL (#26814)

lolsob-rspec
Claire 2023-09-06 12:17:51 +02:00 committed by GitHub
parent 575ad09c6a
commit bc817cf534
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ class TagManager
domain = uri.host + (uri.port ? ":#{uri.port}" : '') domain = uri.host + (uri.port ? ":#{uri.port}" : '')
TagManager.instance.web_domain?(domain) TagManager.instance.web_domain?(domain)
rescue Addressable::URI::InvalidURIError rescue Addressable::URI::InvalidURIError, IDN::Idna::IdnaError
false false
end end
end end