From e49b23d36376b80694feaec53f75d6a83019da13 Mon Sep 17 00:00:00 2001
From: Peter Rotich <peter@osticket.com>
Date: Wed, 25 Apr 2012 15:51:48 -0400
Subject: [PATCH] Remove redirect on mailto: clickable urls

---
 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 f7b624d85..a3461bf9d 100644
--- a/include/class.format.php
+++ b/include/class.format.php
@@ -126,7 +126,7 @@ class Format {
         $text=preg_replace("/(^|[ \\n\\r\\t])(www\.([a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+)(\/[^\/ \\n\\r]*)*)/",
             '\\1<a href="l.php?url=http://\\2" target="_blank">\\2</a>', $text);
         $text=preg_replace("/(^|[ \\n\\r\\t])([_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,4})/",
-            '\\1<a href="l.php?url=mailto:\\2" target="_blank">\\2</a>', $text);
+            '\\1<a href="mailto:\\2" target="_blank">\\2</a>', $text);
 
         return $text;
     }
-- 
GitLab