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