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

master
Thibaut Girka 5 years ago committed by ThibG
parent 75b0fa8b76
commit c6ff4c634c
  1. 2
      app/lib/tag_manager.rb

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

Loading…
Cancel
Save