From c6ff4c634caf718adf7280e04909c091d15add1d Mon Sep 17 00:00:00 2001 From: Thibaut Girka Date: Sat, 9 May 2020 15:50:09 +0200 Subject: [PATCH] Fix crash when invalid addresses are linked in HTML or Markdown toots --- app/lib/tag_manager.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/lib/tag_manager.rb b/app/lib/tag_manager.rb index c88cf49947..d06bea0593 100644 --- a/app/lib/tag_manager.rb +++ b/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