mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
cgi escape object_names
This commit is contained in:
parent
0e4bd503d0
commit
835ccf56e3
5 changed files with 5 additions and 5 deletions
|
@ -33,7 +33,7 @@ unless Fog.mocking?
|
|||
:host => "#{target_bucket_name}.#{@host}",
|
||||
:method => 'PUT',
|
||||
:parser => Fog::Parsers::AWS::S3::CopyObject.new,
|
||||
:path => target_object_name
|
||||
:path => CGI.escape(target_object_name)
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@ unless Fog.mocking?
|
|||
:headers => {},
|
||||
:host => "#{bucket_name}.#{@host}",
|
||||
:method => 'DELETE',
|
||||
:path => object_name
|
||||
:path => CGI.escape(object_name)
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ unless Fog.mocking?
|
|||
:headers => headers,
|
||||
:host => "#{bucket_name}.#{@host}",
|
||||
:method => 'GET',
|
||||
:path => object_name,
|
||||
:path => CGI.escape(object_name),
|
||||
:block => block
|
||||
})
|
||||
end
|
||||
|
|
|
@ -34,7 +34,7 @@ unless Fog.mocking?
|
|||
:headers => headers,
|
||||
:host => "#{bucket_name}.#{@host}",
|
||||
:method => 'HEAD',
|
||||
:path => object_name
|
||||
:path => CGI.escape(object_name)
|
||||
})
|
||||
end
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ unless Fog.mocking?
|
|||
:headers => headers,
|
||||
:host => "#{bucket_name}.#{@host}",
|
||||
:method => 'PUT',
|
||||
:path => object_name
|
||||
:path => CGI.escape(object_name)
|
||||
})
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue