X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=index.php;h=448c23a6b0227947d201312a278e2312f10eb5de;hb=30b0672d0437578d8eaec8b9cc74c2f1700cf484;hp=3349ff7af8414a1f8113284bfc79da3107be0713;hpb=64bf914aea0c692784df53f844173bc9356d2899;p=github%2Fshaarli%2FShaarli.git
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)
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