From f0c08a6553db827eada8775bc79659fc68b5a30f Mon Sep 17 00:00:00 2001 From: rinkp Date: Tue, 29 Aug 2017 21:21:06 +0200 Subject: [PATCH] Outlook boundaries Fixes #6 --- PlancakeEmailParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlancakeEmailParser.php b/PlancakeEmailParser.php index 97bd262..b2ffb01 100644 --- a/PlancakeEmailParser.php +++ b/PlancakeEmailParser.php @@ -393,7 +393,7 @@ public function getBody($returnType = self::PLAINTEXT) } // there could be more than one boundary. This also skips the quotes if they are included. - preg_match_all('/boundary=(?:|")([a-zA-Z0-9\(\)_\/+-]+)(?:|")(?:$|;)/mi', $this->emailRawContent, $matches); + preg_match_all('/boundary=(?:|")([a-zA-Z0-9_=\.\(\)_\/+-]+)(?:|")(?:$|;)/mi', $this->emailRawContent, $matches); $boundariesRaw = $matches[1]; $boundaries = array(); foreach ($boundariesRaw as $i => $v) {