mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Make rubocop happy.
This commit is contained in:
@@ -86,7 +86,7 @@ module FileStore
|
|||||||
return false if url.blank?
|
return false if url.blank?
|
||||||
|
|
||||||
begin
|
begin
|
||||||
parsed_url = URI.parse(URI.encode(url))
|
parsed_url = URI.parse(UrlHelper.encode(url))
|
||||||
rescue URI::InvalidURIError, URI::InvalidComponentError
|
rescue URI::InvalidURIError, URI::InvalidComponentError
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user