From: Andrew Dolgov Date: Sun, 7 Jul 2013 07:23:59 +0000 (+0400) Subject: rewrite_relative_url: don't touch stuff which has sheme in it (closes #738) X-Git-Tag: 1.9~71 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c722c0be1788c99f54782cb44295bfd4a3085bad;p=tt-rss.git rewrite_relative_url: don't touch stuff which has sheme in it (closes #738) --- diff --git a/include/functions.php b/include/functions.php index 0eceed62..bcded7e5 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;