From 9f4f99f4514955517891e04ee621a3821c2ac298 Mon Sep 17 00:00:00 2001 From: UlrichB22 <97119703+UlrichB22@users.noreply.github.com> Date: Wed, 28 May 2025 20:59:19 +0200 Subject: [PATCH] Fix extraction of open document format files for indexing --- src/moin/converters/opendocument_in.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/moin/converters/opendocument_in.py b/src/moin/converters/opendocument_in.py index 80321b793..604c6198f 100644 --- a/src/moin/converters/opendocument_in.py +++ b/src/moin/converters/opendocument_in.py @@ -1,4 +1,5 @@ # Copyright: 2011 MoinMoin:ThomasWaldmann +# Copyright: 2025 MoinMoin:UlrichB # License: GNU GPL v2 (or any later version), see LICENSE.txt for details. """ @@ -26,7 +27,7 @@ def _factory(cls, input, output, **kw): return cls() def __call__(self, rev, contenttype=None, arguments=None): - zf = zipfile.ZipFile(rev, "r") # rev is file-like + zf = zipfile.ZipFile(rev.data, "r") # rev is file-like try: data = zf.read("content.xml") text = data.decode("utf-8")