From 223f9ca6652156c7551286cd9e4b69dfeb18a1d5 Mon Sep 17 00:00:00 2001 From: Claire Date: Wed, 6 Sep 2023 12:17:51 +0200 Subject: [PATCH] Fix crash when encountering invalid URL (#26814) --- app/lib/tag_manager.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/tag_manager.rb b/app/lib/tag_manager.rb index ea096855f..f1b61ff4f 100644 --- a/app/lib/tag_manager.rb +++ b/app/lib/tag_manager.rb @@ -29,7 +29,7 @@ class TagManager domain = uri.host + (uri.port ? ":#{uri.port}" : '') TagManager.instance.web_domain?(domain) - rescue Addressable::URI::InvalidURIError + rescue Addressable::URI::InvalidURIError, IDN::Idna::IdnaError false end end