From 7a037e70fd9e3585248a1b3a5490998ab76e3082 Mon Sep 17 00:00:00 2001 From: Sebastian Willenborg Date: Fri, 31 Aug 2018 02:47:36 +0200 Subject: [PATCH] Fix comparsion against string (Closes #347) --- oletools/rtfobj.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oletools/rtfobj.py b/oletools/rtfobj.py index c45ab1c..ad2d82c 100644 --- a/oletools/rtfobj.py +++ b/oletools/rtfobj.py @@ -718,7 +718,7 @@ class RtfObjParser(RtfParser): def control_symbol(self, matchobject): # log.debug('control symbol %r at index %Xh' % (matchobject.group(), self.index)) symbol = matchobject.group()[1:2] - if symbol == "'": + if symbol == b"'": # read the two hex digits following "\'" - which can be any characters, not just hex digits # (because within an objdata destination, they are simply ignored) hexdigits = self.data[self.index+2:self.index+4] -- libgit2 0.21.4