1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Merge pull request #1421 from jparker/delete_multiple_objects_escape_xml

use CGI.escapeHTML instead of CGI.escape
This commit is contained in:
Wesley Beary 2012-12-25 08:49:44 -08:00
commit 9aec2ceb7b

View file

@ -42,10 +42,10 @@ module Fog
version_ids = options.delete('versionId')
object_names.each do |object_name|
data << "<Object>"
data << "<Key>#{CGI.escape(object_name)}</Key>"
data << "<Key>#{CGI.escapeHTML(object_name)}</Key>"
object_version = version_ids.nil? ? nil : version_ids[object_name]
if object_version
data << "<VersionId>#{CGI.escape(object_version)}</VersionId>"
data << "<VersionId>#{CGI.escapeHTML(object_version)}</VersionId>"
end
data << "</Object>"
end