Browse Source

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

master^2
Thibaut Girka ThibG 11 months ago
parent
commit
c6ff4c634c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app/lib/tag_manager.rb

+ 2
- 0
app/lib/tag_manager.rb View File

@@ -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