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:
commit
9aec2ceb7b
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue