mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: invalid urls should not break store.has_been_uploaded?
Breaking this method has wide ramification including breaking search indexing.
This commit is contained in:
@@ -89,7 +89,10 @@ module FileStore
|
||||
|
||||
begin
|
||||
parsed_url = URI.parse(UrlHelper.encode(url))
|
||||
rescue URI::InvalidURIError, URI::InvalidComponentError
|
||||
rescue
|
||||
# There are many exceptions possible here including Addressable::URI:: excpetions
|
||||
# and URI:: exceptions, catch all may seem wide, but it makes no sense to raise ever
|
||||
# on an invalid url here
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user