From aa0cf226bc4021640cfaad0a3e8f9f42345d5067 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Mon, 20 Oct 2014 09:05:53 -0500
Subject: [PATCH] oops: Always strip embedded images unless

---
 include/class.thread.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/class.thread.php b/include/class.thread.php
index c009ed2fb..b57da9713 100644
--- a/include/class.thread.php
+++ b/include/class.thread.php
@@ -1427,7 +1427,7 @@ class TextThreadBody extends ThreadBody {
 }
 class HtmlThreadBody extends ThreadBody {
     function __construct($body, $options=array()) {
-        if ($options['strip-embedded'])
+        if (!isset($options['strip-embedded']) || $options['strip-embedded'])
             $body = $this->extractEmbeddedHtmlImages($body);
         parent::__construct($body, 'html', $options);
     }
-- 
GitLab