summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-03-11 12:36:08 +0400
committerAndrew Dolgov <[email protected]>2012-03-11 12:36:08 +0400
commitb4520bb8b184fe19cbd8db360284cb585d9eadc7 (patch)
tree0bcdbbe423ab367e47924f97d3ef29fb32d861d0 /include
parente33b0b80b299c25241836c4d62b1f0cc1813961a (diff)
rewrite_relative_url: add theoretical fix for magnet links (refs #436)
Diffstat (limited to 'include')
-rw-r--r--include/functions.php4
1 files changed, 3 insertions, 1 deletions
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)
{