mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 14:03:22 +08:00
Minor change to case-insensitive regex for s3_presigned_url?
This commit is contained in:
parent
5b03f35614
commit
5f1749a1c0
|
@ -68,7 +68,7 @@ class UrlHelper
|
|||
end
|
||||
|
||||
def self.s3_presigned_url?(url)
|
||||
(url.downcase =~ /x-amz-algorithm|x-amz-credential/).present?
|
||||
url[/x-amz-(algorithm|credential)/i].present?
|
||||
end
|
||||
|
||||
def self.cook_url(url, secure: false)
|
||||
|
|
Loading…
Reference in New Issue
Block a user