We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a19fdd commit 9182923Copy full SHA for 9182923
packages/markitdown/src/markitdown/converters/_zip_converter.py
@@ -77,6 +77,10 @@ def convert(
77
try:
78
# Extract the zip file safely
79
with zipfile.ZipFile(local_path, "r") as zipObj:
80
+ # Bail if we discover it's an Office OOXML file
81
+ if "[Content_Types].xml" in zipObj.namelist():
82
+ return None
83
+
84
# Safeguard against path traversal
85
for member in zipObj.namelist():
86
member_path = os.path.normpath(os.path.join(extraction_dir, member))
0 commit comments