From 5caade9fb0754fa13ae11f86145cd0ca1dcb830b 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 7a32a51c1..2e929d6e3 100644 --- a/app/lib/tag_manager.rb +++ b/app/lib/tag_manager.rb @@ -28,7 +28,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