1
0
Fork 0
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:
Wesley Beary 2009-10-04 15:29:31 -07:00
parent 0e4bd503d0
commit 835ccf56e3
5 changed files with 5 additions and 5 deletions

View file

@ -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

View file

@ -19,7 +19,7 @@ unless Fog.mocking?
:headers => {},
:host => "#{bucket_name}.#{@host}",
:method => 'DELETE',
:path => object_name
:path => CGI.escape(object_name)
})
end

View file

@ -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

View file

@ -34,7 +34,7 @@ unless Fog.mocking?
:headers => headers,
:host => "#{bucket_name}.#{@host}",
:method => 'HEAD',
:path => object_name
:path => CGI.escape(object_name)
})
end

View file

@ -33,7 +33,7 @@ unless Fog.mocking?
:headers => headers,
:host => "#{bucket_name}.#{@host}",
:method => 'PUT',
:path => object_name
:path => CGI.escape(object_name)
})
end