Skip to content
Snippets Groups Projects
Unverified Commit 28212bd2 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix TagManager#local_url? erroring out on invalid URL (#18580)

parent 14d7cf39
No related branches found
Tags v2.3.2rc5
No related merge requests found
......@@ -24,8 +24,11 @@ class TagManager
def local_url?(url)
uri = Addressable::URI.parse(url).normalize
return false unless uri.host
domain = uri.host + (uri.port ? ":#{uri.port}" : '')
TagManager.instance.web_domain?(domain)
rescue Addressable::URI::InvalidURIError
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