From eb5861fc7763457c774e1e55cc895b170a60a319 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 9 May 2014 09:56:07 -0500
Subject: [PATCH] oops: Fixup cid detection in thread body (again)

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

diff --git a/include/class.thread.php b/include/class.thread.php
index 8ba433c8f..aa78f1acb 100644
--- a/include/class.thread.php
+++ b/include/class.thread.php
@@ -1048,7 +1048,8 @@ Class ThreadEntry {
                 // content-id will be discarded, only the unique hash-code
                 // will be available to retrieve the image later
                 if ($a['cid'] && $a['key']) {
-                    $body = preg_replace('/src=("|\'|\b)(?:cid:)?'.preg_quote($a['cid']).'\1/i',
+                    $body = preg_replace('/src=("|\'|\b)(?:cid:)?'
+                        . preg_quote($a['cid'], '/').'\1/i',
                         'src="cid:'.$a['key'].'"', $body);
                 }
             }
-- 
GitLab