From: Andrew Dolgov Date: Sun, 11 Mar 2012 08:36:08 +0000 (+0400) Subject: rewrite_relative_url: add theoretical fix for magnet links (refs #436) X-Git-Tag: 1.5.11~30 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=b4520bb8b184fe19cbd8db360284cb585d9eadc7;p=tt-rss.git rewrite_relative_url: add theoretical fix for magnet links (refs #436) --- diff --git a/include/functions.php b/include/functions.php index 8a3c607f..84b6da01 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) {