зеркало из https://github.com/github/aws-s3.git
escape ; in query values too
This commit is contained in:
Родитель
7a18d8b81e
Коммит
2dcee48fc6
|
@ -40,6 +40,7 @@ module AWS
|
|||
escaped = escape_uri(path)
|
||||
escaped.gsub!(/=/, '%3D')
|
||||
escaped.gsub!(/&/, '%26')
|
||||
escaped.gsub!(/;/, '%3B')
|
||||
escaped
|
||||
end
|
||||
|
||||
|
|
|
@ -75,7 +75,7 @@ class ObjectTest < Test::Unit::TestCase
|
|||
|
||||
begin
|
||||
AWS::S3::Base.connections['AWS::S3::Base'] = conn
|
||||
assert_match 'response-content-disposition=attachment;%20filename%3Dfoo.txt',
|
||||
assert_match 'response-content-disposition=attachment%3B%20filename%3Dfoo.txt',
|
||||
@object.url(:query => {
|
||||
'response-content-disposition' => 'attachment; filename=foo.txt'})
|
||||
ensure
|
||||
|
|
Загрузка…
Ссылка в новой задаче