From 7bdd7e5c93553c6d70b7c6b034e7d733081e4eeb 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