]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions2.php
rewrite_relative_url: do not skip urls containing :
[tt-rss.git] / 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)