summaryrefslogtreecommitdiffstats
path: root/lib/roo/open_office.rb
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2025-11-26 19:02:28 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2025-11-26 19:02:28 -0500
commitc62f8376a13e7a4f493167aba1c66a9201fc59c6 (patch)
treed58492f972be02c406d26620004e1ffe2086fbc7 /lib/roo/open_office.rb
parentae103e148eb3c15606b816505492d870ef062ad3 (diff)
New upstream version 3.0.0.upstream/3.0.0upstream
Diffstat (limited to 'lib/roo/open_office.rb')
-rw-r--r--lib/roo/open_office.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/roo/open_office.rb b/lib/roo/open_office.rb
index 542c5b4..f7a8139 100644
--- a/lib/roo/open_office.rb
+++ b/lib/roo/open_office.rb
@@ -59,7 +59,7 @@ module Roo
fail ArgumentError, ERROR_MISSING_CONTENT_XML unless content_entry
roo_content_xml_path = ::File.join(@tmpdir, 'roo_content.xml')
- content_entry.extract(roo_content_xml_path)
+ content_entry.extract('roo_content.xml', destination_directory: @tmpdir)
decrypt_if_necessary(zip_file, content_entry, roo_content_xml_path, options)
end
end
@@ -234,7 +234,7 @@ module Roo
if (manifest_entry = zip_file.glob('META-INF/manifest.xml').first)
roo_manifest_xml_path = File.join(@tmpdir, 'roo_manifest.xml')
- manifest_entry.extract(roo_manifest_xml_path)
+ manifest_entry.extract('roo_manifest.xml', destination_directory: @tmpdir)
manifest = ::Roo::Utils.load_xml(roo_manifest_xml_path)
# XPath search for manifest:encryption-data only for the content.xml