1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-23 22:56:54 +09:00

Fix crash when encountering invalid URL (#26814)

This commit is contained in:
Claire 2023-09-06 12:17:51 +02:00 committed by GitHub
parent 09ec9c6aa5
commit 223f9ca665
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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