diff options
author | Andrew Dolgov <[email protected]> | 2013-07-07 11:23:59 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-07-07 11:23:59 +0400 |
commit | c722c0be1788c99f54782cb44295bfd4a3085bad (patch) | |
tree | 48882122583f2deb55063d7b164db9702562eed8 /include/functions.php | |
parent | 62e7136b748aa8c0baced692680b5d063f55c52a (diff) |
rewrite_relative_url: don't touch stuff which has sheme in it (closes #738)
Diffstat (limited to 'include/functions.php')
-rw-r--r-- | include/functions.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/functions.php b/include/functions.php index 0eceed623..bcded7e5f 100644 --- a/include/functions.php +++ b/include/functions.php @@ -3788,7 +3788,7 @@ * @return string Absolute URL */ function rewrite_relative_url($url, $rel_url) { - if (strpos($rel_url, "magnet:") === 0) { + if (strpos($rel_url, ":") !== false) { return $rel_url; } else if (strpos($rel_url, "://") !== false) { return $rel_url; |