aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--index.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.php b/index.php
index 3349ff7a..448c23a6 100644
--- a/index.php
+++ b/index.php
@@ -223,7 +223,7 @@ function smallHash($text)
223function text2clickable($url) 223function text2clickable($url)
224{ 224{
225 $redir = empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector']; 225 $redir = empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector'];
226 return preg_replace('!(((?:https?|ftp|file)://|apt:)\S+[[:alnum:]]/?)!si','<a href="'.$redir.'$1" rel="nofollow">$1</a>',$url); 226 return preg_replace('!(((?:https?|ftp|file)://|apt:|magnet:)\S+[[:alnum:]]/?)!si','<a href="'.$redir.'$1" rel="nofollow">$1</a>',$url);
227} 227}
228 228
229// This function inserts &nbsp; where relevant so that multiple spaces are properly displayed in HTML 229// This function inserts &nbsp; where relevant so that multiple spaces are properly displayed in HTML