From aafcd06337aff5d7a10440bfe9f38e670d88eb28 Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Wed, 31 Dec 2014 14:13:51 -0600
Subject: [PATCH] oops: Add clickable URLs to ticket thread view

---
 include/client/view.inc.php       | 2 +-
 include/staff/ticket-view.inc.php | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/client/view.inc.php b/include/client/view.inc.php
index dc3a0419f..509315ff4 100644
--- a/include/client/view.inc.php
+++ b/include/client/view.inc.php
@@ -122,7 +122,7 @@ if($ticket->getThreadCount() && ($thread=$ticket->getClientThread())) {
                 <span><?php echo $poster; ?></span>
             </div>
             </th></tr>
-            <tr><td class="thread-body"><div><?php echo $entry['body']->toHtml(); ?></div></td></tr>
+            <tr><td class="thread-body"><div><?php echo Format::clickableurls($entry['body']->toHtml()); ?></div></td></tr>
             <?php
             if($entry['attachments']
                     && ($tentry=$ticket->getThreadEntry($entry['id']))
diff --git a/include/staff/ticket-view.inc.php b/include/staff/ticket-view.inc.php
index 23ab4b0cb..c39d1bcee 100644
--- a/include/staff/ticket-view.inc.php
+++ b/include/staff/ticket-view.inc.php
@@ -406,7 +406,7 @@ $tcount+= $ticket->getNumNotes();
             </tr>
             <tr><td colspan="4" class="thread-body" id="thread-id-<?php
                 echo $entry['id']; ?>"><div><?php
-                echo $entry['body']->toHtml(); ?></div></td></tr>
+                echo Format::clickableurls($entry['body']->toHtml()); ?></div></td></tr>
             <?php
             if($entry['attachments']
                     && ($tentry = $ticket->getThreadEntry($entry['id']))
-- 
GitLab