From 30b0672d0437578d8eaec8b9cc74c2f1700cf484 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20SAUVAGE?= Date: Wed, 27 Feb 2013 15:49:32 +0100 Subject: [PATCH] Support for magnet links in description. --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 3349ff7..448c23a 100644 --- a/index.php +++ b/index.php @@ -223,7 +223,7 @@ function smallHash($text) function text2clickable($url) { $redir = empty($GLOBALS['redirector']) ? '' : $GLOBALS['redirector']; - return preg_replace('!(((?:https?|ftp|file)://|apt:)\S+[[:alnum:]]/?)!si','$1',$url); + return preg_replace('!(((?:https?|ftp|file)://|apt:|magnet:)\S+[[:alnum:]]/?)!si','$1',$url); } // This function inserts   where relevant so that multiple spaces are properly displayed in HTML