]> git.wh0rd.org Git - tt-rss.git/commitdiff
rewrite_relative_url: don't touch stuff which has sheme in it (closes #738)
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 7 Jul 2013 07:23:59 +0000 (11:23 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 7 Jul 2013 07:23:59 +0000 (11:23 +0400)
include/functions.php

index 0eceed623267122cd1ff97b377d2ebfbe23771b3..bcded7e5fe54b2bc1dc3c01324072ff6fe4d9a9f 100644 (file)
         * @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;