mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 18:24:52 -06: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