Skip to content

Commit

Permalink
Small fix for office parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
yoniabrahamy committed Sep 13, 2023
1 parent b1ec5cd commit 6b26199
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/cuckoo/common/integrations/parse_office.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,11 @@ def _get_xml_meta(self, filepath) -> Dict[str, Dict[str, str]]:
metares = {"SummaryInformation": {}, "DocumentSummaryInformation": {}}

for elem in core._get_documentElement().childNodes:
n = elem._get_tagName()
try:
if isinstance(elem, xml.dom.minidom.Text):
continue

n = elem._get_tagName()
data = core.getElementsByTagName(n)
if not data:
continue
Expand Down

0 comments on commit 6b26199

Please sign in to comment.