Fix crash when invalid addresses are linked in HTML or Markdown toots

th-downstream
Thibaut Girka 5 years ago committed by ThibG
parent 418c1806c6
commit 7bdd7e5c93

@ -35,5 +35,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
false
end end
end end

Loading…
Cancel
Save