mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 16:38:48 +08:00
FIX: S3 upload when using dots in bucket name
This commit is contained in:
@ -128,7 +128,7 @@ module FileStore
|
||||
end
|
||||
|
||||
def is_local?(url)
|
||||
absolute_url = url.start_with?("//") ? (SiteSetting.use_ssl? ? "https:" : "http:") + url : url
|
||||
absolute_url = url.start_with?("//") ? SiteSetting.scheme + ":" + url : url
|
||||
absolute_url.start_with?(absolute_base_url) || absolute_url.start_with?(absolute_base_cdn_url)
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user