]> git.wh0rd.org Git - tt-rss.git/commitdiff
Support protocol-relative URLs
authorfluffy <fluffy@beesbuzz.biz>
Sun, 22 Jul 2012 16:26:29 +0000 (09:26 -0700)
committerfluffy <fluffy@beesbuzz.biz>
Sun, 22 Jul 2012 16:27:21 +0000 (09:27 -0700)
include/functions.php

index a3de2461d5472b9ecd280ec32695801087fbb32d..394f540c95f21a9a8a5cd694f9f64b90107b18f7 100644 (file)
                        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)
+                       return $rel_url;
                } else if (strpos($rel_url, "/") === 0)
                {
                        $parts = parse_url($url);