diff --git a/include/functions.php b/include/functions.php index 8a3c607f3..84b6da015 100644 --- a/include/functions.php +++ b/include/functions.php @@ -4805,7 +4805,9 @@ * @return string Absolute URL */ function rewrite_relative_url($url, $rel_url) { - if (strpos($rel_url, "://") !== false) { + if (strpos($rel_url, "magnet:") === 0) { + return $rel_url; + } else if (strpos($rel_url, "://") !== false) { return $rel_url; } else if (strpos($rel_url, "/") === 0) {