Skip to content

Commit

Permalink
Merge pull request #1744 from intezer/fix-office-parsing
Browse files Browse the repository at this point in the history
Small fix for office parsing
  • Loading branch information
doomedraven authored Sep 13, 2023
2 parents b1ec5cd + 6b26199 commit 479f400
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 479f400

Please sign in to comment.