Skip to content
Snippets Groups Projects
Commit 5caade9f authored by Claire's avatar Claire
Browse files

Fix crash when encountering invalid URL (#26814)

parent 34959ecc
No related branches found
No related tags found
No related merge requests found
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment