From 27dc536049de23cc4e3766b34c80472efb1ebe64 Mon Sep 17 00:00:00 2001 From: decalage2 Date: Thu, 11 Jan 2018 11:43:26 +0100 Subject: [PATCH] fixed issue #242 (apply unquote to fldSimple tags) --- oletools/msodde.py | 7 ++++--- setup.py | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/oletools/msodde.py b/oletools/msodde.py index c582771..56b124e 100644 --- a/oletools/msodde.py +++ b/oletools/msodde.py @@ -20,7 +20,7 @@ http://www.decalage.info/python/oletools # === LICENSE ================================================================= -# msodde is copyright (c) 2017 Philippe Lagadec (http://www.decalage.info) +# msodde is copyright (c) 2017-2018 Philippe Lagadec (http://www.decalage.info) # All rights reserved. # # Redistribution and use in source and binary forms, with or without @@ -94,8 +94,9 @@ from oletools import rtfobj # 2017-11-29 PL: - added support for RTF files (issue #223) # 2017-12-07 CH: - ensure rtf file is closed # 2018-01-05 CH: - add CSV +# 2018-01-11 PL: - fixed issue #242 (apply unquote to fldSimple tags) -__version__ = '0.52dev10' +__version__ = '0.52dev11' # ----------------------------------------------------------------------------- # TODO: field codes can be in headers/footers/comments - parse these @@ -627,7 +628,7 @@ def process_xml(data): for elem in root.iter(TAG_W_FLDSIMPLE): # concatenate the attribute of the field, if present: if elem.attrib is not None: - fields.append(elem.attrib[ATTR_W_INSTR]) + fields.append(unquote(elem.attrib[ATTR_W_INSTR])) return fields diff --git a/setup.py b/setup.py index 26351d8..a739bab 100644 --- a/setup.py +++ b/setup.py @@ -42,7 +42,7 @@ import os, fnmatch #--- METADATA ----------------------------------------------------------------- name = "oletools" -version = '0.52dev9' +version = '0.52dev11' desc = "Python tools to analyze security characteristics of MS Office and OLE files (also called Structured Storage, Compound File Binary Format or Compound Document File Format), for Malware Analysis and Incident Response #DFIR" long_desc = open('oletools/README.rst').read() author = "Philippe Lagadec" -- libgit2 0.21.4