From acfc421bcddc1ae78d9a9335ffd10f1c13499c7c Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Tue, 4 Feb 2014 18:01:12 -0600
Subject: [PATCH] oops: Fix regex error in cid: matching

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

diff --git a/include/class.format.php b/include/class.format.php
index 5cbcd048e..c8980326d 100644
--- a/include/class.format.php
+++ b/include/class.format.php
@@ -383,7 +383,7 @@ class Format {
 
 
     function viewableImages($html, $script='image.php') {
-        return preg_replace_callback('/"cid:([\w.-_]{32})"/',
+        return preg_replace_callback('/"cid:([\w._-]{32})"/',
         function($match) use ($script) {
             $hash = $match[1];
             if (!($file = AttachmentFile::lookup($hash)))
-- 
GitLab