From bcbebd0bc14d00261d43b41b782aefdab10902dd Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Mon, 3 Mar 2014 16:11:44 -0600 Subject: [PATCH] oops: Fixup image stripping code --- include/class.thread.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/class.thread.php b/include/class.thread.php index ef1fed5c2..4eaa27e94 100644 --- a/include/class.thread.php +++ b/include/class.thread.php @@ -1189,8 +1189,8 @@ class ThreadBody /* extends SplString */ { if ($images_before) { preg_match_all('/src="cid:([\w_-]+)"/', $this->body, $images_after, PREG_SET_ORDER); - $this->stripped_images = array_diff($images_before, - $images_after); + $this->stripped_images = array_diff($images_before[1], + $images_after[1]); } } } -- GitLab