From 282675dd9fdae7622381a7a8349ce56082d3298d Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Fri, 27 Mar 2015 13:14:18 -0500 Subject: [PATCH] Correctly format body for the delivery status mail --- include/class.mailparse.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/include/class.mailparse.php b/include/class.mailparse.php index 4b8bcde81..477bbb4ef 100644 --- a/include/class.mailparse.php +++ b/include/class.mailparse.php @@ -275,10 +275,9 @@ class Mail_Parse { && isset($this->struct->ctype_parameters['report-type']) && $this->struct->ctype_parameters['report-type'] == 'delivery-status' ) { - return sprintf('<pre>%s</pre>', - Format::htmlchars( - $this->getPart($this->struct, 'text/plain', 1) - )); + return new TextThreadBody( + $this->getPart($this->struct, 'text/plain', 1) + ); } return false; } -- GitLab