]> git.wh0rd.org - tt-rss.git/commitdiff
Revert "rewrite_relative_url: do not skip urls containing :"
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Sat, 20 Feb 2016 09:02:34 +0000 (12:02 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Sat, 20 Feb 2016 09:02:34 +0000 (12:02 +0300)
This reverts commit a547fef6ab4da1d3691ac0f24aca8e9bb545bc25.

include/functions2.php

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