From 977cdd308d0d4c66da347122ace43c99099183db Mon Sep 17 00:00:00 2001 From: Philippe Lagadec Date: Sun, 31 Jan 2016 22:06:56 +0100 Subject: [PATCH] olevba: fixed issue #32 by monkeypatching email.feedparser --- oletools/olevba.py | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/oletools/olevba.py b/oletools/olevba.py index 94bc06b..501fe49 100755 --- a/oletools/olevba.py +++ b/oletools/olevba.py @@ -159,6 +159,7 @@ https://github.com/unixfreak0037/officeparser # 2015-12-16 PL: - fixed bug in main (no options input anymore) # - improved logging, added -l option # 2016-01-31 PL: - fixed issue #31 in VBA_Parser.open_mht +# - fixed issue #32 by monkeypatching email.feedparser __version__ = '0.42' @@ -233,6 +234,10 @@ from thirdparty.prettytable import prettytable from thirdparty.xglob import xglob from thirdparty.pyparsing.pyparsing import * +# monkeypatch email to fix issue #32: +# allow header lines without ":" +import email.feedparser +email.feedparser.headerRE = re.compile(r'^(From |[\041-\071\073-\176]{1,}:?|[\t ])') # === LOGGING ================================================================= -- libgit2 0.21.4