]> git.wh0rd.org - tt-rss.git/commitdiff
rewrite_relative_url: do not skip urls containing :
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Sat, 20 Feb 2016 08:57:37 +0000 (11:57 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Sat, 20 Feb 2016 08:57:37 +0000 (11:57 +0300)
include/functions2.php

index ed22a0623b9564401ee54294f9eb8ecd043b370c..c0ebcff83141066ae8e6b27c2e50032db59fba8b 100644 (file)
         * @return string Absolute URL
         */
        function rewrite_relative_url($url, $rel_url) {
-               if (strpos($rel_url, ":") !== false) {
-                       return $rel_url;
-               } else if (strpos($rel_url, "://") !== false) {
+               if (strpos($rel_url, "://") !== false) {
                        return $rel_url;
                } else if (strpos($rel_url, "//") === 0) {
                        # protocol-relative URL (rare but they exist)