From f8d731c8f4a20ef2df1875f714fd29837fada00d Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Thu, 21 Nov 2013 08:24:57 -0600
Subject: [PATCH] Fix image corruption issue on pages

---
 include/staff/page.inc.php | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/include/staff/page.inc.php b/include/staff/page.inc.php
index 067c1fd51..b76a40607 100644
--- a/include/staff/page.inc.php
+++ b/include/staff/page.inc.php
@@ -13,7 +13,8 @@ if($page && $_REQUEST['a']!='add'){
     $action='update';
     $submit_text='Save Changes';
     $info=$page->getHashtable();
-    $info['body'] = $page->getBodyWithImages();
+    $info['body'] = Format::viewableImages($page->getBody());
+    $info['notes'] = Format::viewableImages($info['notes']);
     $slug = Format::slugify($info['name']);
     $qstr.='&id='.$page->getId();
 }else {
-- 
GitLab