From e0c7e4b66dbe5f75b9d97506a4ee3aaf9704e2e1 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 30 Jan 2014 13:15:06 -0600
Subject: [PATCH] oops: Make files viewable with _ in key

---
 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 31650f2c6..ef56399d6 100644
--- a/include/class.format.php
+++ b/include/class.format.php
@@ -385,7 +385,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