fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [17439] Turn Plain Text URLs into Active Links


From: sigurdne
Subject: [Fmsystem-commits] [17439] Turn Plain Text URLs into Active Links
Date: Wed, 13 Dec 2017 10:28:17 -0500 (EST)

Revision: 17439
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=17439
Author:   sigurdne
Date:     2017-12-13 10:28:17 -0500 (Wed, 13 Dec 2017)
Log Message:
-----------
Turn Plain Text URLs into Active Links

Modified Paths:
--------------
    trunk/helpdesk/inc/class.uitts.inc.php
    trunk/property/inc/class.uitts.inc.php

Modified: trunk/helpdesk/inc/class.uitts.inc.php
===================================================================
--- trunk/helpdesk/inc/class.uitts.inc.php      2017-12-13 12:25:24 UTC (rev 
17438)
+++ trunk/helpdesk/inc/class.uitts.inc.php      2017-12-13 15:28:17 UTC (rev 
17439)
@@ -1961,6 +1961,7 @@
 
                        foreach ($additional_notes as &$note)
                        {
+                               $note['value_note'] = 
preg_replace("/[[:alpha:]]+:\/\/[^<>[:space:]]+[[:alnum:]\/]/","<a 
href=\"\\0\">\\0</a>", $note['value_note']);
                                $note['value_note'] = 
nl2br($note['value_note']);
                        }
 

Modified: trunk/property/inc/class.uitts.inc.php
===================================================================
--- trunk/property/inc/class.uitts.inc.php      2017-12-13 12:25:24 UTC (rev 
17438)
+++ trunk/property/inc/class.uitts.inc.php      2017-12-13 15:28:17 UTC (rev 
17439)
@@ -2432,6 +2432,7 @@
 
                        foreach ($additional_notes as &$note)
                        {
+                               $note['value_note'] = 
preg_replace("/[[:alpha:]]+:\/\/[^<>[:space:]]+[[:alnum:]\/]/","<a 
href=\"\\0\">\\0</a>", $note['value_note']);
                                $note['value_note'] = 
nl2br($note['value_note']);
                        }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]