diff options
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -223,7 +223,7 @@ function smallHash($text) | |||
223 | function text2clickable($url) | 223 | function 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 where relevant so that multiple spaces are properly displayed in HTML | 229 | // This function inserts where relevant so that multiple spaces are properly displayed in HTML |