Fix crash when encountering invalid URL (#26814)

This commit is contained in:
Claire 2023-09-06 12:17:51 +02:00
parent 31c5e63a58
commit 412c3e13ec
1 changed files with 2 additions and 0 deletions

View File

@ -27,5 +27,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, IDN::Idna::IdnaError
false
end end
end end