mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-28 03:03:27 +00:00
Fix crash when invalid addresses are linked in HTML or Markdown toots
This commit is contained in:
parent
75b0fa8b76
commit
c6ff4c634c
|
@ -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…
Reference in a new issue