rewrite_relative_url: add theoretical fix for magnet links (refs #436)

This commit is contained in:
Andrew Dolgov 2012-03-11 12:36:08 +04:00
parent e33b0b80b2
commit b4520bb8b1
1 changed files with 3 additions and 1 deletions

View File

@ -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)
{