From 35aefa4b9c4dbe2812cc0693a77923e3c6b37335 Mon Sep 17 00:00:00 2001 From: hitapia Date: Tue, 3 Feb 2015 15:31:03 +0900 Subject: [PATCH] #24 --- PlancakeEmailParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PlancakeEmailParser.php b/PlancakeEmailParser.php index 59e6cee..f385d5e 100644 --- a/PlancakeEmailParser.php +++ b/PlancakeEmailParser.php @@ -207,7 +207,7 @@ public function getBody($returnType=self::PLAINTEXT) $boundaries = $matches[1]; // sometimes boundaries are delimited by quotes - we want to remove them foreach($boundaries as $i => $v) { - $boundaries[$i] = str_replace(array("'", '"'), '', $v); + $boundaries[$i] = trim(str_replace(array("'", '"'), '', $v)); } foreach ($this->rawBodyLines as $line) {